Class DownloadRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DownloadRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
com.soulfiremc.grpc.generated.DownloadRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DownloadRequestOrBuilder, Cloneable
- Enclosing class:
DownloadRequest
public static final class DownloadRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
implements DownloadRequestOrBuilder
Request message for downloading content from a URL through the SoulFire server. This allows clients to fetch remote resources using the server's network connection, optionally through a proxy, which is useful for accessing resources that may be blocked or rate-limited from the client's network.Protobuf type
soulfire.v1.DownloadRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllHeaders(Iterable<? extends HeaderPair> values) Optional HTTP headers to include in the request to the target server.addHeaders(int index, HeaderPair value) Optional HTTP headers to include in the request to the target server.addHeaders(int index, HeaderPair.Builder builderForValue) Optional HTTP headers to include in the request to the target server.addHeaders(HeaderPair value) Optional HTTP headers to include in the request to the target server.addHeaders(HeaderPair.Builder builderForValue) Optional HTTP headers to include in the request to the target server.Optional HTTP headers to include in the request to the target server.addHeadersBuilder(int index) Optional HTTP headers to include in the request to the target server.build()clear()Optional HTTP headers to include in the request to the target server.The UUID of the SoulFire instance to associate this download with.Optional proxy configuration for the download request.clearUri()The URI to download content from.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHeaders(int index) Optional HTTP headers to include in the request to the target server.getHeadersBuilder(int index) Optional HTTP headers to include in the request to the target server.Optional HTTP headers to include in the request to the target server.intOptional HTTP headers to include in the request to the target server.Optional HTTP headers to include in the request to the target server.getHeadersOrBuilder(int index) Optional HTTP headers to include in the request to the target server.List<? extends HeaderPairOrBuilder> Optional HTTP headers to include in the request to the target server.The UUID of the SoulFire instance to associate this download with.com.google.protobuf.ByteStringThe UUID of the SoulFire instance to associate this download with.getProxy()Optional proxy configuration for the download request.Optional proxy configuration for the download request.Optional proxy configuration for the download request.getUri()The URI to download content from.com.google.protobuf.ByteStringThe URI to download content from.booleanhasProxy()Optional proxy configuration for the download request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DownloadRequest other) mergeProxy(ProxyProto value) Optional proxy configuration for the download request.removeHeaders(int index) Optional HTTP headers to include in the request to the target server.setHeaders(int index, HeaderPair value) Optional HTTP headers to include in the request to the target server.setHeaders(int index, HeaderPair.Builder builderForValue) Optional HTTP headers to include in the request to the target server.setInstanceId(String value) The UUID of the SoulFire instance to associate this download with.setInstanceIdBytes(com.google.protobuf.ByteString value) The UUID of the SoulFire instance to associate this download with.setProxy(ProxyProto value) Optional proxy configuration for the download request.setProxy(ProxyProto.Builder builderForValue) Optional proxy configuration for the download request.The URI to download content from.setUriBytes(com.google.protobuf.ByteString value) The URI to download content from.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DownloadRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DownloadRequest.Builder>
-
mergeFrom
public DownloadRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DownloadRequest.Builder>- Throws:
IOException
-
getInstanceId
The UUID of the SoulFire instance to associate this download with. Used for permission checking - the caller must have DOWNLOAD_URL permission for this instance. Must be a valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000").
string instance_id = 1;- Specified by:
getInstanceIdin interfaceDownloadRequestOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()The UUID of the SoulFire instance to associate this download with. Used for permission checking - the caller must have DOWNLOAD_URL permission for this instance. Must be a valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000").
string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceDownloadRequestOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
The UUID of the SoulFire instance to associate this download with. Used for permission checking - the caller must have DOWNLOAD_URL permission for this instance. Must be a valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000").
string instance_id = 1;- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
The UUID of the SoulFire instance to associate this download with. Used for permission checking - the caller must have DOWNLOAD_URL permission for this instance. Must be a valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000").
string instance_id = 1;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
The UUID of the SoulFire instance to associate this download with. Used for permission checking - the caller must have DOWNLOAD_URL permission for this instance. Must be a valid UUID string (e.g., "550e8400-e29b-41d4-a716-446655440000").
string instance_id = 1;- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getUri
The URI to download content from. Must be a valid, fully-formed URI (e.g., "https://example.com/resource.json"). The server will make an HTTP GET request to this URI.
string uri = 2;- Specified by:
getUriin interfaceDownloadRequestOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()The URI to download content from. Must be a valid, fully-formed URI (e.g., "https://example.com/resource.json"). The server will make an HTTP GET request to this URI.
string uri = 2;- Specified by:
getUriBytesin interfaceDownloadRequestOrBuilder- Returns:
- The bytes for uri.
-
setUri
The URI to download content from. Must be a valid, fully-formed URI (e.g., "https://example.com/resource.json"). The server will make an HTTP GET request to this URI.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
The URI to download content from. Must be a valid, fully-formed URI (e.g., "https://example.com/resource.json"). The server will make an HTTP GET request to this URI.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
The URI to download content from. Must be a valid, fully-formed URI (e.g., "https://example.com/resource.json"). The server will make an HTTP GET request to this URI.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getHeadersList
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3;- Specified by:
getHeadersListin interfaceDownloadRequestOrBuilder
-
getHeadersCount
public int getHeadersCount()Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3;- Specified by:
getHeadersCountin interfaceDownloadRequestOrBuilder
-
getHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3;- Specified by:
getHeadersin interfaceDownloadRequestOrBuilder
-
setHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
setHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addAllHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
clearHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
removeHeaders
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
getHeadersBuilder
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
getHeadersOrBuilder
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3;- Specified by:
getHeadersOrBuilderin interfaceDownloadRequestOrBuilder
-
getHeadersOrBuilderList
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3;- Specified by:
getHeadersOrBuilderListin interfaceDownloadRequestOrBuilder
-
addHeadersBuilder
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
addHeadersBuilder
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
getHeadersBuilderList
Optional HTTP headers to include in the request to the target server. These headers are added on top of the default headers set by the server (Accept, Accept-Language, User-Agent). Custom headers can override defaults.
repeated .soulfire.v1.HeaderPair headers = 3; -
hasProxy
public boolean hasProxy()Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4;- Specified by:
hasProxyin interfaceDownloadRequestOrBuilder- Returns:
- Whether the proxy field is set.
-
getProxy
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4;- Specified by:
getProxyin interfaceDownloadRequestOrBuilder- Returns:
- The proxy.
-
setProxy
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4; -
setProxy
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4; -
mergeProxy
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4; -
clearProxy
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4; -
getProxyBuilder
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4; -
getProxyOrBuilder
Optional proxy configuration for the download request. If not provided, the request will be made directly from the server. Supports HTTP, SOCKS4, and SOCKS5 proxies with optional authentication.
optional .soulfire.v1.ProxyProto proxy = 4;- Specified by:
getProxyOrBuilderin interfaceDownloadRequestOrBuilder
-