public static final class HttpBody.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder> implements HttpBodyOrBuilder
yamcs.api.HttpBody| Modifier and Type | Method and Description |
|---|---|
HttpBody.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HttpBody |
build() |
HttpBody |
buildPartial() |
HttpBody.Builder |
clear() |
HttpBody.Builder |
clearContentType()
The Content-Type header value for this body.
|
HttpBody.Builder |
clearData()
The body as raw binary
optional bytes data = 3; |
HttpBody.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HttpBody.Builder |
clearFilename()
If set, a Content-Disposition header is added
to the response.
|
HttpBody.Builder |
clearMetadata() |
HttpBody.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HttpBody.Builder |
clone() |
boolean |
containsMetadata(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
String |
getContentType()
The Content-Type header value for this body.
|
com.google.protobuf.ByteString |
getContentTypeBytes()
The Content-Type header value for this body.
|
com.google.protobuf.ByteString |
getData()
The body as raw binary
optional bytes data = 3; |
HttpBody |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFilename()
If set, a Content-Disposition header is added
to the response.
|
com.google.protobuf.ByteString |
getFilenameBytes()
If set, a Content-Disposition header is added
to the response.
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
Map<String,String> |
getMetadataMap()
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
String |
getMetadataOrDefault(String key,
String defaultValue)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
String |
getMetadataOrThrow(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
Map<String,String> |
getMutableMetadata()
Deprecated.
|
boolean |
hasContentType()
The Content-Type header value for this body.
|
boolean |
hasData()
The body as raw binary
optional bytes data = 3; |
boolean |
hasFilename()
If set, a Content-Disposition header is added
to the response.
|
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() |
HttpBody.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HttpBody.Builder |
mergeFrom(HttpBody other) |
HttpBody.Builder |
mergeFrom(com.google.protobuf.Message other) |
HttpBody.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HttpBody.Builder |
putAllMetadata(Map<String,String> values)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
HttpBody.Builder |
putMetadata(String key,
String value)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
HttpBody.Builder |
removeMetadata(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4; |
HttpBody.Builder |
setContentType(String value)
The Content-Type header value for this body.
|
HttpBody.Builder |
setContentTypeBytes(com.google.protobuf.ByteString value)
The Content-Type header value for this body.
|
HttpBody.Builder |
setData(com.google.protobuf.ByteString value)
The body as raw binary
optional bytes data = 3; |
HttpBody.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HttpBody.Builder |
setFilename(String value)
If set, a Content-Disposition header is added
to the response.
|
HttpBody.Builder |
setFilenameBytes(com.google.protobuf.ByteString value)
If set, a Content-Disposition header is added
to the response.
|
HttpBody.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
HttpBody.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<HttpBody.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.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<HttpBody.Builder>public HttpBody getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HttpBody build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HttpBody buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HttpBody.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HttpBody.Builder>public HttpBody.Builder mergeFrom(HttpBody other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public HttpBody.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HttpBody.Builder>IOExceptionpublic boolean hasContentType()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;hasContentType in interface HttpBodyOrBuilderpublic String getContentType()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;getContentType in interface HttpBodyOrBuilderpublic com.google.protobuf.ByteString getContentTypeBytes()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;getContentTypeBytes in interface HttpBodyOrBuilderpublic HttpBody.Builder setContentType(String value)
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;public HttpBody.Builder clearContentType()
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;public HttpBody.Builder setContentTypeBytes(com.google.protobuf.ByteString value)
The Content-Type header value for this body. If unspecified, defaults to application/octet-stream
optional string content_type = 1;public boolean hasFilename()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;hasFilename in interface HttpBodyOrBuilderpublic String getFilename()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;getFilename in interface HttpBodyOrBuilderpublic com.google.protobuf.ByteString getFilenameBytes()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;getFilenameBytes in interface HttpBodyOrBuilderpublic HttpBody.Builder setFilename(String value)
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;public HttpBody.Builder clearFilename()
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;public HttpBody.Builder setFilenameBytes(com.google.protobuf.ByteString value)
If set, a Content-Disposition header is added to the response. Weg agents use this to trigger a download.
optional string filename = 2;public boolean hasData()
The body as raw binary
optional bytes data = 3;hasData in interface HttpBodyOrBuilderpublic com.google.protobuf.ByteString getData()
The body as raw binary
optional bytes data = 3;getData in interface HttpBodyOrBuilderpublic HttpBody.Builder setData(com.google.protobuf.ByteString value)
The body as raw binary
optional bytes data = 3;public HttpBody.Builder clearData()
The body as raw binary
optional bytes data = 3;public int getMetadataCount()
HttpBodyOrBuilderAny other metadata (used in multipart/form)
map<string, string> metadata = 4;getMetadataCount in interface HttpBodyOrBuilderpublic boolean containsMetadata(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;containsMetadata in interface HttpBodyOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface HttpBodyOrBuilderpublic Map<String,String> getMetadataMap()
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;getMetadataMap in interface HttpBodyOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;getMetadataOrDefault in interface HttpBodyOrBuilderpublic String getMetadataOrThrow(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;getMetadataOrThrow in interface HttpBodyOrBuilderpublic HttpBody.Builder clearMetadata()
public HttpBody.Builder removeMetadata(String key)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;@Deprecated public Map<String,String> getMutableMetadata()
public HttpBody.Builder putMetadata(String key, String value)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;public HttpBody.Builder putAllMetadata(Map<String,String> values)
Any other metadata (used in multipart/form)
map<string, string> metadata = 4;public final HttpBody.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>public final HttpBody.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HttpBody.Builder>Copyright © 2022 Space Applications Services. All rights reserved.