public static final class StaticFilesHandler.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder> implements StaticFilesHandlerOrBuilder
Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.Protobuf type
google.appengine.v1.StaticFilesHandler| Modifier and Type | Method and Description |
|---|---|
StaticFilesHandler.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
StaticFilesHandler |
build() |
StaticFilesHandler |
buildPartial() |
StaticFilesHandler.Builder |
clear() |
StaticFilesHandler.Builder |
clearApplicationReadable()
Whether files should also be uploaded as code data.
|
StaticFilesHandler.Builder |
clearExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StaticFilesHandler.Builder |
clearHttpHeaders() |
StaticFilesHandler.Builder |
clearMimeType()
MIME type used to serve all files served by this handler.
|
StaticFilesHandler.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StaticFilesHandler.Builder |
clearPath()
Path to the static files matched by the URL pattern, from the
application root directory.
|
StaticFilesHandler.Builder |
clearRequireMatchingFile()
Whether this handler should match the request if the file
referenced by the handler does not exist.
|
StaticFilesHandler.Builder |
clearUploadPathRegex()
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
StaticFilesHandler.Builder |
clone() |
boolean |
containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
boolean |
getApplicationReadable()
Whether files should also be uploaded as code data.
|
StaticFilesHandler |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Duration |
getExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
com.google.protobuf.Duration.Builder |
getExpirationBuilder()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
com.google.protobuf.DurationOrBuilder |
getExpirationOrBuilder()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeaders()
Deprecated.
|
int |
getHttpHeadersCount()
HTTP headers to use for all responses from these URLs.
|
java.util.Map<java.lang.String,java.lang.String> |
getHttpHeadersMap()
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getHttpHeadersOrDefault(java.lang.String key,
java.lang.String defaultValue)
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getHttpHeadersOrThrow(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
java.lang.String |
getMimeType()
MIME type used to serve all files served by this handler.
|
com.google.protobuf.ByteString |
getMimeTypeBytes()
MIME type used to serve all files served by this handler.
|
java.util.Map<java.lang.String,java.lang.String> |
getMutableHttpHeaders()
Deprecated.
|
java.lang.String |
getPath()
Path to the static files matched by the URL pattern, from the
application root directory.
|
com.google.protobuf.ByteString |
getPathBytes()
Path to the static files matched by the URL pattern, from the
application root directory.
|
boolean |
getRequireMatchingFile()
Whether this handler should match the request if the file
referenced by the handler does not exist.
|
java.lang.String |
getUploadPathRegex()
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
com.google.protobuf.ByteString |
getUploadPathRegexBytes()
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
boolean |
hasExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
StaticFilesHandler.Builder |
mergeExpiration(com.google.protobuf.Duration value)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StaticFilesHandler.Builder |
mergeFrom(com.google.protobuf.Message other) |
StaticFilesHandler.Builder |
mergeFrom(StaticFilesHandler other) |
StaticFilesHandler.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StaticFilesHandler.Builder |
putAllHttpHeaders(java.util.Map<java.lang.String,java.lang.String> values)
HTTP headers to use for all responses from these URLs.
|
StaticFilesHandler.Builder |
putHttpHeaders(java.lang.String key,
java.lang.String value)
HTTP headers to use for all responses from these URLs.
|
StaticFilesHandler.Builder |
removeHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
|
StaticFilesHandler.Builder |
setApplicationReadable(boolean value)
Whether files should also be uploaded as code data.
|
StaticFilesHandler.Builder |
setExpiration(com.google.protobuf.Duration.Builder builderForValue)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
setExpiration(com.google.protobuf.Duration value)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
StaticFilesHandler.Builder |
setMimeType(java.lang.String value)
MIME type used to serve all files served by this handler.
|
StaticFilesHandler.Builder |
setMimeTypeBytes(com.google.protobuf.ByteString value)
MIME type used to serve all files served by this handler.
|
StaticFilesHandler.Builder |
setPath(java.lang.String value)
Path to the static files matched by the URL pattern, from the
application root directory.
|
StaticFilesHandler.Builder |
setPathBytes(com.google.protobuf.ByteString value)
Path to the static files matched by the URL pattern, from the
application root directory.
|
StaticFilesHandler.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
StaticFilesHandler.Builder |
setRequireMatchingFile(boolean value)
Whether this handler should match the request if the file
referenced by the handler does not exist.
|
StaticFilesHandler.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StaticFilesHandler.Builder |
setUploadPathRegex(java.lang.String value)
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
StaticFilesHandler.Builder |
setUploadPathRegexBytes(com.google.protobuf.ByteString value)
Regular expression that matches the file paths for all files that should be
referenced by this handler.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StaticFilesHandler build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StaticFilesHandler buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StaticFilesHandler.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(StaticFilesHandler other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StaticFilesHandler.Builder>java.io.IOExceptionpublic java.lang.String getPath()
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
string path = 1;getPath in interface StaticFilesHandlerOrBuilderpublic com.google.protobuf.ByteString getPathBytes()
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
string path = 1;getPathBytes in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setPath(java.lang.String value)
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
string path = 1;public StaticFilesHandler.Builder clearPath()
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
string path = 1;public StaticFilesHandler.Builder setPathBytes(com.google.protobuf.ByteString value)
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
string path = 1;public java.lang.String getUploadPathRegex()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;getUploadPathRegex in interface StaticFilesHandlerOrBuilderpublic com.google.protobuf.ByteString getUploadPathRegexBytes()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;getUploadPathRegexBytes in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setUploadPathRegex(java.lang.String value)
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;public StaticFilesHandler.Builder clearUploadPathRegex()
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;public StaticFilesHandler.Builder setUploadPathRegexBytes(com.google.protobuf.ByteString value)
Regular expression that matches the file paths for all files that should be referenced by this handler.
string upload_path_regex = 2;public int getHttpHeadersCount()
StaticFilesHandlerOrBuilderHTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersCount in interface StaticFilesHandlerOrBuilderpublic boolean containsHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;containsHttpHeaders in interface StaticFilesHandlerOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getHttpHeaders()
getHttpHeadersMap() instead.getHttpHeaders in interface StaticFilesHandlerOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getHttpHeadersMap()
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersMap in interface StaticFilesHandlerOrBuilderpublic java.lang.String getHttpHeadersOrDefault(java.lang.String key,
java.lang.String defaultValue)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersOrDefault in interface StaticFilesHandlerOrBuilderpublic java.lang.String getHttpHeadersOrThrow(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;getHttpHeadersOrThrow in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder clearHttpHeaders()
public StaticFilesHandler.Builder removeHttpHeaders(java.lang.String key)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableHttpHeaders()
public StaticFilesHandler.Builder putHttpHeaders(java.lang.String key, java.lang.String value)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;public StaticFilesHandler.Builder putAllHttpHeaders(java.util.Map<java.lang.String,java.lang.String> values)
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;public java.lang.String getMimeType()
MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
string mime_type = 4;getMimeType in interface StaticFilesHandlerOrBuilderpublic com.google.protobuf.ByteString getMimeTypeBytes()
MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
string mime_type = 4;getMimeTypeBytes in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setMimeType(java.lang.String value)
MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
string mime_type = 4;public StaticFilesHandler.Builder clearMimeType()
MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
string mime_type = 4;public StaticFilesHandler.Builder setMimeTypeBytes(com.google.protobuf.ByteString value)
MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension.
string mime_type = 4;public boolean hasExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;hasExpiration in interface StaticFilesHandlerOrBuilderpublic com.google.protobuf.Duration getExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;getExpiration in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setExpiration(com.google.protobuf.Duration value)
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;public StaticFilesHandler.Builder setExpiration(com.google.protobuf.Duration.Builder builderForValue)
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;public StaticFilesHandler.Builder mergeExpiration(com.google.protobuf.Duration value)
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;public StaticFilesHandler.Builder clearExpiration()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;public com.google.protobuf.Duration.Builder getExpirationBuilder()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;public com.google.protobuf.DurationOrBuilder getExpirationOrBuilder()
Time a static file served by this handler should be cached by web proxies and browsers.
.google.protobuf.Duration expiration = 5;getExpirationOrBuilder in interface StaticFilesHandlerOrBuilderpublic boolean getRequireMatchingFile()
Whether this handler should match the request if the file referenced by the handler does not exist.
bool require_matching_file = 6;getRequireMatchingFile in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setRequireMatchingFile(boolean value)
Whether this handler should match the request if the file referenced by the handler does not exist.
bool require_matching_file = 6;public StaticFilesHandler.Builder clearRequireMatchingFile()
Whether this handler should match the request if the file referenced by the handler does not exist.
bool require_matching_file = 6;public boolean getApplicationReadable()
Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
bool application_readable = 7;getApplicationReadable in interface StaticFilesHandlerOrBuilderpublic StaticFilesHandler.Builder setApplicationReadable(boolean value)
Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
bool application_readable = 7;public StaticFilesHandler.Builder clearApplicationReadable()
Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
bool application_readable = 7;public final StaticFilesHandler.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public final StaticFilesHandler.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StaticFilesHandler.Builder>