Package io.grpc.binarylog.v1
Class Metadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Metadata.Builder>
-
- io.grpc.binarylog.v1.Metadata.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,MetadataOrBuilder
,Cloneable
- Enclosing class:
- Metadata
public static final class Metadata.Builder extends GeneratedMessageV3.Builder<Metadata.Builder> implements MetadataOrBuilder
A list of metadata pairs, used in the payload of client header, server header, and server trailer. Implementations may omit some entries to honor the header limits of GRPC_BINARY_LOG_CONFIG. Header keys added by gRPC are omitted. To be more specific, implementations will not log the following entries, and this is not to be treated as a truncation: - entries handled by grpc that are not user visible, such as those that begin with 'grpc-' (with exception of grpc-trace-bin) or keys like 'lb-token' - transport specific entries, including but not limited to: ':path', ':authority', 'content-encoding', 'user-agent', 'te', etc - entries added for call credentials Implementations must always log grpc-trace-bin if it is present. Practically speaking it will only be visible on server side because grpc-trace-bin is managed by low level client side mechanisms inaccessible from the application level. On server side, the header is just a normal metadata key. The pair will not count towards the size limit.
Protobuf typegrpc.binarylog.v1.Metadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata.Builder
addAllEntry(Iterable<? extends MetadataEntry> values)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
addEntry(int index, MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
addEntry(int index, MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
addEntry(MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
addEntry(MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
MetadataEntry.Builder
addEntryBuilder()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
MetadataEntry.Builder
addEntryBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Metadata
build()
Metadata
buildPartial()
Metadata.Builder
clear()
Metadata.Builder
clearEntry()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
clearField(Descriptors.FieldDescriptor field)
Metadata.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
Metadata.Builder
clone()
Metadata
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
MetadataEntry
getEntry(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
MetadataEntry.Builder
getEntryBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
List<MetadataEntry.Builder>
getEntryBuilderList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
int
getEntryCount()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
List<MetadataEntry>
getEntryList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
MetadataEntryOrBuilder
getEntryOrBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
List<? extends MetadataEntryOrBuilder>
getEntryOrBuilderList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Metadata.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Metadata.Builder
mergeFrom(Message other)
Metadata.Builder
mergeFrom(Metadata other)
Metadata.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
Metadata.Builder
removeEntry(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
setEntry(int index, MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
setEntry(int index, MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
Metadata.Builder
setField(Descriptors.FieldDescriptor field, Object value)
Metadata.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Metadata.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
clear
public Metadata.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
getDefaultInstanceForType
public Metadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public Metadata build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public Metadata buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public Metadata.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
setField
public Metadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
clearField
public Metadata.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
clearOneof
public Metadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
setRepeatedField
public Metadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
addRepeatedField
public Metadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
mergeFrom
public Metadata.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Metadata.Builder>
-
mergeFrom
public Metadata.Builder mergeFrom(Metadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
mergeFrom
public Metadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Metadata.Builder>
- Throws:
IOException
-
getEntryList
public List<MetadataEntry> getEntryList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
- Specified by:
getEntryList
in interfaceMetadataOrBuilder
-
getEntryCount
public int getEntryCount()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
- Specified by:
getEntryCount
in interfaceMetadataOrBuilder
-
getEntry
public MetadataEntry getEntry(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
- Specified by:
getEntry
in interfaceMetadataOrBuilder
-
setEntry
public Metadata.Builder setEntry(int index, MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
setEntry
public Metadata.Builder setEntry(int index, MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addEntry
public Metadata.Builder addEntry(MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addEntry
public Metadata.Builder addEntry(int index, MetadataEntry value)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addEntry
public Metadata.Builder addEntry(MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addEntry
public Metadata.Builder addEntry(int index, MetadataEntry.Builder builderForValue)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addAllEntry
public Metadata.Builder addAllEntry(Iterable<? extends MetadataEntry> values)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
clearEntry
public Metadata.Builder clearEntry()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
removeEntry
public Metadata.Builder removeEntry(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
getEntryBuilder
public MetadataEntry.Builder getEntryBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
getEntryOrBuilder
public MetadataEntryOrBuilder getEntryOrBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
- Specified by:
getEntryOrBuilder
in interfaceMetadataOrBuilder
-
getEntryOrBuilderList
public List<? extends MetadataEntryOrBuilder> getEntryOrBuilderList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
- Specified by:
getEntryOrBuilderList
in interfaceMetadataOrBuilder
-
addEntryBuilder
public MetadataEntry.Builder addEntryBuilder()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
addEntryBuilder
public MetadataEntry.Builder addEntryBuilder(int index)
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
getEntryBuilderList
public List<MetadataEntry.Builder> getEntryBuilderList()
repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
-
setUnknownFields
public final Metadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
mergeUnknownFields
public final Metadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<Metadata.Builder>
-
-