Class Trailer.Builder

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

    public static final class Trailer.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Trailer.Builder>
    implements TrailerOrBuilder
    Protobuf type grpc.binarylog.v1.Trailer
    • Field Detail

      • bitField0_

        private int bitField0_
      • statusCode_

        private int statusCode_
      • statusMessage_

        private java.lang.Object statusMessage_
      • statusDetails_

        private com.google.protobuf.ByteString statusDetails_
    • 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<Trailer.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public Trailer.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<Trailer.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<Trailer.Builder>
      • getDefaultInstanceForType

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

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

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

        private void buildPartial0​(Trailer result)
      • mergeFrom

        public Trailer.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<Trailer.Builder>
      • isInitialized

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

        public Trailer.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<Trailer.Builder>
        Throws:
        java.io.IOException
      • hasMetadata

        public boolean hasMetadata()
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
        Specified by:
        hasMetadata in interface TrailerOrBuilder
        Returns:
        Whether the metadata field is set.
      • getMetadata

        public Metadata getMetadata()
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
        Specified by:
        getMetadata in interface TrailerOrBuilder
        Returns:
        The metadata.
      • setMetadata

        public Trailer.Builder setMetadata​(Metadata value)
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • setMetadata

        public Trailer.Builder setMetadata​(Metadata.Builder builderForValue)
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • mergeMetadata

        public Trailer.Builder mergeMetadata​(Metadata value)
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • clearMetadata

        public Trailer.Builder clearMetadata()
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • getMetadataBuilder

        public Metadata.Builder getMetadataBuilder()
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • getMetadataFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Metadata,​Metadata.Builder,​MetadataOrBuilder> getMetadataFieldBuilder()
         This contains only the metadata from the application.
         
        .grpc.binarylog.v1.Metadata metadata = 1;
      • getStatusCode

        public int getStatusCode()
         The gRPC status code.
         
        uint32 status_code = 2;
        Specified by:
        getStatusCode in interface TrailerOrBuilder
        Returns:
        The statusCode.
      • setStatusCode

        public Trailer.Builder setStatusCode​(int value)
         The gRPC status code.
         
        uint32 status_code = 2;
        Parameters:
        value - The statusCode to set.
        Returns:
        This builder for chaining.
      • clearStatusCode

        public Trailer.Builder clearStatusCode()
         The gRPC status code.
         
        uint32 status_code = 2;
        Returns:
        This builder for chaining.
      • getStatusMessage

        public java.lang.String getStatusMessage()
         An original status message before any transport specific
         encoding.
         
        string status_message = 3;
        Specified by:
        getStatusMessage in interface TrailerOrBuilder
        Returns:
        The statusMessage.
      • getStatusMessageBytes

        public com.google.protobuf.ByteString getStatusMessageBytes()
         An original status message before any transport specific
         encoding.
         
        string status_message = 3;
        Specified by:
        getStatusMessageBytes in interface TrailerOrBuilder
        Returns:
        The bytes for statusMessage.
      • setStatusMessage

        public Trailer.Builder setStatusMessage​(java.lang.String value)
         An original status message before any transport specific
         encoding.
         
        string status_message = 3;
        Parameters:
        value - The statusMessage to set.
        Returns:
        This builder for chaining.
      • clearStatusMessage

        public Trailer.Builder clearStatusMessage()
         An original status message before any transport specific
         encoding.
         
        string status_message = 3;
        Returns:
        This builder for chaining.
      • setStatusMessageBytes

        public Trailer.Builder setStatusMessageBytes​(com.google.protobuf.ByteString value)
         An original status message before any transport specific
         encoding.
         
        string status_message = 3;
        Parameters:
        value - The bytes for statusMessage to set.
        Returns:
        This builder for chaining.
      • getStatusDetails

        public com.google.protobuf.ByteString getStatusDetails()
         The value of the 'grpc-status-details-bin' metadata key. If
         present, this is always an encoded 'google.rpc.Status' message.
         
        bytes status_details = 4;
        Specified by:
        getStatusDetails in interface TrailerOrBuilder
        Returns:
        The statusDetails.
      • setStatusDetails

        public Trailer.Builder setStatusDetails​(com.google.protobuf.ByteString value)
         The value of the 'grpc-status-details-bin' metadata key. If
         present, this is always an encoded 'google.rpc.Status' message.
         
        bytes status_details = 4;
        Parameters:
        value - The statusDetails to set.
        Returns:
        This builder for chaining.
      • clearStatusDetails

        public Trailer.Builder clearStatusDetails()
         The value of the 'grpc-status-details-bin' metadata key. If
         present, this is always an encoded 'google.rpc.Status' message.
         
        bytes status_details = 4;
        Returns:
        This builder for chaining.