public static final class Body.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder> implements BodyOrBuilder
Wrapper for tapped body data. This includes HTTP request/response body, transport socket received and transmitted data, etc.Protobuf type
envoy.data.tap.v2alpha.Body| Modifier and Type | Method and Description |
|---|---|
Body.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Body |
build() |
Body |
buildPartial() |
Body.Builder |
clear() |
Body.Builder |
clearAsBytes()
Body data as bytes.
|
Body.Builder |
clearAsString()
Body data as string.
|
Body.Builder |
clearBodyType() |
Body.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Body.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Body.Builder |
clearTruncated()
Specifies whether body data has been truncated to fit within the specified
:ref:`max_buffered_rx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and
:ref:`max_buffered_tx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
|
Body.Builder |
clone() |
com.google.protobuf.ByteString |
getAsBytes()
Body data as bytes.
|
String |
getAsString()
Body data as string.
|
com.google.protobuf.ByteString |
getAsStringBytes()
Body data as string.
|
Body.BodyTypeCase |
getBodyTypeCase() |
Body |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getTruncated()
Specifies whether body data has been truncated to fit within the specified
:ref:`max_buffered_rx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and
:ref:`max_buffered_tx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Body.Builder |
mergeFrom(Body other) |
Body.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Body.Builder |
mergeFrom(com.google.protobuf.Message other) |
Body.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Body.Builder |
setAsBytes(com.google.protobuf.ByteString value)
Body data as bytes.
|
Body.Builder |
setAsString(String value)
Body data as string.
|
Body.Builder |
setAsStringBytes(com.google.protobuf.ByteString value)
Body data as string.
|
Body.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Body.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Body.Builder |
setTruncated(boolean value)
Specifies whether body data has been truncated to fit within the specified
:ref:`max_buffered_rx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and
:ref:`max_buffered_tx_bytes
<envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
|
Body.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public Body.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Body.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<Body.Builder>public Body getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Body build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Body buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Body.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public Body.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<Body.Builder>public Body.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public Body.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public Body.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<Body.Builder>public Body.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<Body.Builder>public Body.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Body.Builder>public Body.Builder mergeFrom(Body other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public Body.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<Body.Builder>IOExceptionpublic Body.BodyTypeCase getBodyTypeCase()
getBodyTypeCase in interface BodyOrBuilderpublic Body.Builder clearBodyType()
public com.google.protobuf.ByteString getAsBytes()
Body data as bytes. By default, tap body data will be present in this field, as the proto `bytes` type can contain any valid byte.
bytes as_bytes = 1;getAsBytes in interface BodyOrBuilderpublic Body.Builder setAsBytes(com.google.protobuf.ByteString value)
Body data as bytes. By default, tap body data will be present in this field, as the proto `bytes` type can contain any valid byte.
bytes as_bytes = 1;public Body.Builder clearAsBytes()
Body data as bytes. By default, tap body data will be present in this field, as the proto `bytes` type can contain any valid byte.
bytes as_bytes = 1;public String getAsString()
Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;getAsString in interface BodyOrBuilderpublic com.google.protobuf.ByteString getAsStringBytes()
Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;getAsStringBytes in interface BodyOrBuilderpublic Body.Builder setAsString(String value)
Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;public Body.Builder clearAsString()
Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;public Body.Builder setAsStringBytes(com.google.protobuf.ByteString value)
Body data as string. This field is only used when the :ref:`JSON_BODY_AS_STRING <envoy_api_enum_value_service.tap.v2alpha.OutputSink.Format.JSON_BODY_AS_STRING>` sink format type is selected. See the documentation for that option for why this is useful.
string as_string = 2;public boolean getTruncated()
Specifies whether body data has been truncated to fit within the specified :ref:`max_buffered_rx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and :ref:`max_buffered_tx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
bool truncated = 3;getTruncated in interface BodyOrBuilderpublic Body.Builder setTruncated(boolean value)
Specifies whether body data has been truncated to fit within the specified :ref:`max_buffered_rx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and :ref:`max_buffered_tx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
bool truncated = 3;public Body.Builder clearTruncated()
Specifies whether body data has been truncated to fit within the specified :ref:`max_buffered_rx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` and :ref:`max_buffered_tx_bytes <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` settings.
bool truncated = 3;public final Body.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>public final Body.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Body.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.