public static final class UptimeCheckConfig.HttpCheck.Builder extends GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder> implements UptimeCheckConfig.HttpCheckOrBuilder
Information involved in an HTTP/HTTPS uptime check request.Protobuf type
google.monitoring.v3.UptimeCheckConfig.HttpCheck
Modifier and Type | Method and Description |
---|---|
UptimeCheckConfig.HttpCheck.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
UptimeCheckConfig.HttpCheck |
build() |
UptimeCheckConfig.HttpCheck |
buildPartial() |
UptimeCheckConfig.HttpCheck.Builder |
clear() |
UptimeCheckConfig.HttpCheck.Builder |
clearAuthInfo()
The authentication information.
|
UptimeCheckConfig.HttpCheck.Builder |
clearField(Descriptors.FieldDescriptor field) |
UptimeCheckConfig.HttpCheck.Builder |
clearHeaders() |
UptimeCheckConfig.HttpCheck.Builder |
clearMaskHeaders()
Boolean specifiying whether to encrypt the header information.
|
UptimeCheckConfig.HttpCheck.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
UptimeCheckConfig.HttpCheck.Builder |
clearPath()
The path to the page to run the check against.
|
UptimeCheckConfig.HttpCheck.Builder |
clearPort()
The port to the page to run the check against.
|
UptimeCheckConfig.HttpCheck.Builder |
clearUseSsl()
If true, use HTTPS instead of HTTP to run the check.
|
UptimeCheckConfig.HttpCheck.Builder |
clone() |
boolean |
containsHeaders(java.lang.String key)
The list of headers to send as part of the uptime check request.
|
UptimeCheckConfig.HttpCheck.BasicAuthentication |
getAuthInfo()
The authentication information.
|
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder |
getAuthInfoBuilder()
The authentication information.
|
UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder |
getAuthInfoOrBuilder()
The authentication information.
|
UptimeCheckConfig.HttpCheck |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Deprecated.
|
int |
getHeadersCount()
The list of headers to send as part of the uptime check request.
|
java.util.Map<java.lang.String,java.lang.String> |
getHeadersMap()
The list of headers to send as part of the uptime check request.
|
java.lang.String |
getHeadersOrDefault(java.lang.String key,
java.lang.String defaultValue)
The list of headers to send as part of the uptime check request.
|
java.lang.String |
getHeadersOrThrow(java.lang.String key)
The list of headers to send as part of the uptime check request.
|
boolean |
getMaskHeaders()
Boolean specifiying whether to encrypt the header information.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableHeaders()
Deprecated.
|
java.lang.String |
getPath()
The path to the page to run the check against.
|
ByteString |
getPathBytes()
The path to the page to run the check against.
|
int |
getPort()
The port to the page to run the check against.
|
boolean |
getUseSsl()
If true, use HTTPS instead of HTTP to run the check.
|
boolean |
hasAuthInfo()
The authentication information.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
UptimeCheckConfig.HttpCheck.Builder |
mergeAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication value)
The authentication information.
|
UptimeCheckConfig.HttpCheck.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
UptimeCheckConfig.HttpCheck.Builder |
mergeFrom(Message other) |
UptimeCheckConfig.HttpCheck.Builder |
mergeFrom(UptimeCheckConfig.HttpCheck other) |
UptimeCheckConfig.HttpCheck.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
UptimeCheckConfig.HttpCheck.Builder |
putAllHeaders(java.util.Map<java.lang.String,java.lang.String> values)
The list of headers to send as part of the uptime check request.
|
UptimeCheckConfig.HttpCheck.Builder |
putHeaders(java.lang.String key,
java.lang.String value)
The list of headers to send as part of the uptime check request.
|
UptimeCheckConfig.HttpCheck.Builder |
removeHeaders(java.lang.String key)
The list of headers to send as part of the uptime check request.
|
UptimeCheckConfig.HttpCheck.Builder |
setAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder builderForValue)
The authentication information.
|
UptimeCheckConfig.HttpCheck.Builder |
setAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication value)
The authentication information.
|
UptimeCheckConfig.HttpCheck.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
UptimeCheckConfig.HttpCheck.Builder |
setMaskHeaders(boolean value)
Boolean specifiying whether to encrypt the header information.
|
UptimeCheckConfig.HttpCheck.Builder |
setPath(java.lang.String value)
The path to the page to run the check against.
|
UptimeCheckConfig.HttpCheck.Builder |
setPathBytes(ByteString value)
The path to the page to run the check against.
|
UptimeCheckConfig.HttpCheck.Builder |
setPort(int value)
The port to the page to run the check against.
|
UptimeCheckConfig.HttpCheck.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
UptimeCheckConfig.HttpCheck.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
UptimeCheckConfig.HttpCheck.Builder |
setUseSsl(boolean value)
If true, use HTTPS instead of HTTP to run the check.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public UptimeCheckConfig.HttpCheck build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public UptimeCheckConfig.HttpCheck buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public UptimeCheckConfig.HttpCheck.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder mergeFrom(UptimeCheckConfig.HttpCheck other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public UptimeCheckConfig.HttpCheck.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<UptimeCheckConfig.HttpCheck.Builder>
java.io.IOException
public boolean getUseSsl()
If true, use HTTPS instead of HTTP to run the check.
bool use_ssl = 1;
getUseSsl
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder setUseSsl(boolean value)
If true, use HTTPS instead of HTTP to run the check.
bool use_ssl = 1;
public UptimeCheckConfig.HttpCheck.Builder clearUseSsl()
If true, use HTTPS instead of HTTP to run the check.
bool use_ssl = 1;
public java.lang.String getPath()
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/").
string path = 2;
getPath
in interface UptimeCheckConfig.HttpCheckOrBuilder
public ByteString getPathBytes()
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/").
string path = 2;
getPathBytes
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder setPath(java.lang.String value)
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/").
string path = 2;
public UptimeCheckConfig.HttpCheck.Builder clearPath()
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/").
string path = 2;
public UptimeCheckConfig.HttpCheck.Builder setPathBytes(ByteString value)
The path to the page to run the check against. Will be combined with the host (specified within the MonitoredResource) and port to construct the full URL. Optional (defaults to "/").
string path = 2;
public int getPort()
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
int32 port = 3;
getPort
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder setPort(int value)
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
int32 port = 3;
public UptimeCheckConfig.HttpCheck.Builder clearPort()
The port to the page to run the check against. Will be combined with host (specified within the MonitoredResource) and path to construct the full URL. Optional (defaults to 80 without SSL, or 443 with SSL).
int32 port = 3;
public boolean hasAuthInfo()
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
hasAuthInfo
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.BasicAuthentication getAuthInfo()
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
getAuthInfo
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder setAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication value)
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
public UptimeCheckConfig.HttpCheck.Builder setAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder builderForValue)
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
public UptimeCheckConfig.HttpCheck.Builder mergeAuthInfo(UptimeCheckConfig.HttpCheck.BasicAuthentication value)
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
public UptimeCheckConfig.HttpCheck.Builder clearAuthInfo()
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder getAuthInfoBuilder()
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
public UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder getAuthInfoOrBuilder()
The authentication information. Optional when creating an HTTP check; defaults to empty.
.google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication auth_info = 4;
getAuthInfoOrBuilder
in interface UptimeCheckConfig.HttpCheckOrBuilder
public boolean getMaskHeaders()
Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
bool mask_headers = 5;
getMaskHeaders
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder setMaskHeaders(boolean value)
Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
bool mask_headers = 5;
public UptimeCheckConfig.HttpCheck.Builder clearMaskHeaders()
Boolean specifiying whether to encrypt the header information. Encryption should be specified for any headers related to authentication that you do not wish to be seen when retrieving the configuration. The server will be responsible for encrypting the headers. On Get/List calls, if mask_headers is set to True then the headers will be obscured with ******.
bool mask_headers = 5;
public int getHeadersCount()
UptimeCheckConfig.HttpCheckOrBuilder
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
getHeadersCount
in interface UptimeCheckConfig.HttpCheckOrBuilder
public boolean containsHeaders(java.lang.String key)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
containsHeaders
in interface UptimeCheckConfig.HttpCheckOrBuilder
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getHeaders()
getHeadersMap()
instead.getHeaders
in interface UptimeCheckConfig.HttpCheckOrBuilder
public java.util.Map<java.lang.String,java.lang.String> getHeadersMap()
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
getHeadersMap
in interface UptimeCheckConfig.HttpCheckOrBuilder
public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
getHeadersOrDefault
in interface UptimeCheckConfig.HttpCheckOrBuilder
public java.lang.String getHeadersOrThrow(java.lang.String key)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
getHeadersOrThrow
in interface UptimeCheckConfig.HttpCheckOrBuilder
public UptimeCheckConfig.HttpCheck.Builder clearHeaders()
public UptimeCheckConfig.HttpCheck.Builder removeHeaders(java.lang.String key)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableHeaders()
public UptimeCheckConfig.HttpCheck.Builder putHeaders(java.lang.String key, java.lang.String value)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
public UptimeCheckConfig.HttpCheck.Builder putAllHeaders(java.util.Map<java.lang.String,java.lang.String> values)
The list of headers to send as part of the uptime check request. If two headers have the same key and different values, they should be entered as a single header, with the value being a comma-separated list of all the desired values as described at https://www.w3.org/Protocols/rfc2616/rfc2616.txt (page 31). Entering two separate headers with the same key in a Create call will cause the first to be overwritten by the second.
map<string, string> headers = 6;
public final UptimeCheckConfig.HttpCheck.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>
public final UptimeCheckConfig.HttpCheck.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<UptimeCheckConfig.HttpCheck.Builder>