public static final class StaticFilesHandler.Builder extends 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(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(Descriptors.FieldDescriptor field) |
StaticFilesHandler.Builder |
clearHttpHeaders() |
StaticFilesHandler.Builder |
clearMimeType()
MIME type used to serve all files served by this handler.
|
StaticFilesHandler.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Duration |
getExpiration()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
Duration.Builder |
getExpirationBuilder()
Time a static file served by this handler should be cached
by web proxies and browsers.
|
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.
|
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.
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
StaticFilesHandler.Builder |
mergeExpiration(Duration value)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
StaticFilesHandler.Builder |
mergeFrom(Message other) |
StaticFilesHandler.Builder |
mergeFrom(StaticFilesHandler other) |
StaticFilesHandler.Builder |
mergeUnknownFields(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(Duration.Builder builderForValue)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
setExpiration(Duration value)
Time a static file served by this handler should be cached
by web proxies and browsers.
|
StaticFilesHandler.Builder |
setField(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(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(ByteString value)
Path to the static files matched by the URL pattern, from the
application root directory.
|
StaticFilesHandler.Builder |
setRepeatedField(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(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(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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic StaticFilesHandler build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic StaticFilesHandler buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic StaticFilesHandler.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(StaticFilesHandler other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public StaticFilesHandler.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class 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 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(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 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(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 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(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 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(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(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(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 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 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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>public final StaticFilesHandler.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>