Class Metadata.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetadataOrBuilder, java.lang.Cloneable
    Enclosing class:
    Metadata

    public static final class Metadata.Builder
    extends com.google.protobuf.GeneratedMessage.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 type grpc.binarylog.v1.Metadata
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
      • clear

        public Metadata.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
      • getDefaultInstanceForType

        public Metadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Metadata build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Metadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(Metadata result)
      • buildPartial0

        private void buildPartial0​(Metadata result)
      • mergeFrom

        public Metadata.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Metadata.Builder>
      • mergeFrom

        public Metadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Metadata.Builder>
        Throws:
        java.io.IOException
      • ensureEntryIsMutable

        private void ensureEntryIsMutable()
      • getEntryCount

        public int getEntryCount()
        repeated .grpc.binarylog.v1.MetadataEntry entry = 1;
        Specified by:
        getEntryCount in interface MetadataOrBuilder
      • addAllEntry

        public Metadata.Builder addAllEntry​(java.lang.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;
      • 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 java.util.List<MetadataEntry.Builder> getEntryBuilderList()
        repeated .grpc.binarylog.v1.MetadataEntry entry = 1;