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, 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<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.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public StaticFilesHandler build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public StaticFilesHandler buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public StaticFilesHandler.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.Builder mergeFrom(StaticFilesHandler other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public StaticFilesHandler.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<StaticFilesHandler.Builder>
java.io.IOException
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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()
StaticFilesHandlerOrBuilder
HTTP headers to use for all responses from these URLs.
map<string, string> http_headers = 3;
getHttpHeadersCount
in interface StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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 StaticFilesHandlerOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>
public final StaticFilesHandler.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<StaticFilesHandler.Builder>