Class ClientHeader.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ClientHeader.Builder>
com.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
io.grpc.binarylog.v1.ClientHeader.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClientHeaderOrBuilder, 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 Details

    • bitField0_

      private int bitField0_
    • metadata_

      private Metadata metadata_
    • metadataBuilder_

      private com.google.protobuf.SingleFieldBuilder<Metadata, Metadata.Builder, MetadataOrBuilder> metadataBuilder_
    • methodName_

      private Object methodName_
    • authority_

      private 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 Details

    • Builder

      private Builder()
    • Builder

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

    • 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>
    • mergeFrom

      public ClientHeader.Builder mergeFrom(ClientHeader other)
    • 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 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:
      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;
    • getMetadataOrBuilder

      public MetadataOrBuilder getMetadataOrBuilder()
      This contains only the metadata from the application.
      
      .grpc.binarylog.v1.Metadata metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface ClientHeaderOrBuilder
    • internalGetMetadataFieldBuilder

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

      public 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(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 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(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
    • internalGetTimeoutFieldBuilder

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