Class ClientHeader.Builder

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

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

      • bitField0_

        private int bitField0_
      • methodName_

        private java.lang.Object methodName_
      • authority_

        private java.lang.Object authority_
      • timeout_

        private com.google.protobuf.Duration timeout_
      • timeoutBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> timeoutBuilder_
    • 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<ClientHeader.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

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

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

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

        public ClientHeader 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​(ClientHeader result)
      • mergeFrom

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

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

        public ClientHeader.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<ClientHeader.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 ClientHeaderOrBuilder
        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 ClientHeaderOrBuilder
        Returns:
        The metadata.
      • setMetadata

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

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

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

        public ClientHeader.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;
      • getMethodName

        public java.lang.String getMethodName()
         The name of the RPC method, which looks something like:
         /<service>/<method>
         Note the leading "/" character.
         
        string method_name = 2;
        Specified by:
        getMethodName in interface ClientHeaderOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         The name of the RPC method, which looks something like:
         /<service>/<method>
         Note the leading "/" character.
         
        string method_name = 2;
        Specified by:
        getMethodNameBytes in interface ClientHeaderOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public ClientHeader.Builder setMethodName​(java.lang.String value)
         The name of the RPC method, which looks something like:
         /<service>/<method>
         Note the leading "/" character.
         
        string method_name = 2;
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public ClientHeader.Builder clearMethodName()
         The name of the RPC method, which looks something like:
         /<service>/<method>
         Note the leading "/" character.
         
        string method_name = 2;
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public ClientHeader.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         The name of the RPC method, which looks something like:
         /<service>/<method>
         Note the leading "/" character.
         
        string method_name = 2;
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • getAuthority

        public java.lang.String getAuthority()
         A single process may be used to run multiple virtual
         servers with different identities.
         The authority is the name of such a server identitiy.
         It is typically a portion of the URI in the form of
         <host> or <host>:<port> .
         
        string authority = 3;
        Specified by:
        getAuthority in interface ClientHeaderOrBuilder
        Returns:
        The authority.
      • getAuthorityBytes

        public com.google.protobuf.ByteString getAuthorityBytes()
         A single process may be used to run multiple virtual
         servers with different identities.
         The authority is the name of such a server identitiy.
         It is typically a portion of the URI in the form of
         <host> or <host>:<port> .
         
        string authority = 3;
        Specified by:
        getAuthorityBytes in interface ClientHeaderOrBuilder
        Returns:
        The bytes for authority.
      • setAuthority

        public ClientHeader.Builder setAuthority​(java.lang.String value)
         A single process may be used to run multiple virtual
         servers with different identities.
         The authority is the name of such a server identitiy.
         It is typically a portion of the URI in the form of
         <host> or <host>:<port> .
         
        string authority = 3;
        Parameters:
        value - The authority to set.
        Returns:
        This builder for chaining.
      • clearAuthority

        public ClientHeader.Builder clearAuthority()
         A single process may be used to run multiple virtual
         servers with different identities.
         The authority is the name of such a server identitiy.
         It is typically a portion of the URI in the form of
         <host> or <host>:<port> .
         
        string authority = 3;
        Returns:
        This builder for chaining.
      • setAuthorityBytes

        public ClientHeader.Builder setAuthorityBytes​(com.google.protobuf.ByteString value)
         A single process may be used to run multiple virtual
         servers with different identities.
         The authority is the name of such a server identitiy.
         It is typically a portion of the URI in the form of
         <host> or <host>:<port> .
         
        string authority = 3;
        Parameters:
        value - The bytes for authority to set.
        Returns:
        This builder for chaining.
      • hasTimeout

        public boolean hasTimeout()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        hasTimeout in interface ClientHeaderOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        getTimeout in interface ClientHeaderOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public ClientHeader.Builder setTimeout​(com.google.protobuf.Duration value)
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
      • setTimeout

        public ClientHeader.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
      • mergeTimeout

        public ClientHeader.Builder mergeTimeout​(com.google.protobuf.Duration value)
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
      • clearTimeout

        public ClientHeader.Builder clearTimeout()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;
        Specified by:
        getTimeoutOrBuilder in interface ClientHeaderOrBuilder
      • getTimeoutFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder()
         the RPC timeout
         
        .google.protobuf.Duration timeout = 4;