Package io.grpc.binarylog.v1
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 Summary
FieldsModifier and TypeFieldDescriptionprivate Object
private int
private Metadata
private com.google.protobuf.SingleFieldBuilder
<Metadata, Metadata.Builder, MetadataOrBuilder> private Object
private com.google.protobuf.Duration
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(ClientHeader result) clear()
A single process may be used to run multiple virtual servers with different identities.This contains only the metadata from the application.The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.the RPC timeoutA single process may be used to run multiple virtual servers with different identities.com.google.protobuf.ByteString
A single process may be used to run multiple virtual servers with different identities.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
This contains only the metadata from the application.This contains only the metadata from the application.This contains only the metadata from the application.The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.com.google.protobuf.ByteString
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.com.google.protobuf.Duration
the RPC timeoutcom.google.protobuf.Duration.Builder
the RPC timeoutcom.google.protobuf.DurationOrBuilder
the RPC timeoutboolean
This contains only the metadata from the application.boolean
the RPC timeoutprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<Metadata, Metadata.Builder, MetadataOrBuilder> This contains only the metadata from the application.private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> the RPC timeoutfinal boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ClientHeader other) mergeMetadata
(Metadata value) This contains only the metadata from the application.mergeTimeout
(com.google.protobuf.Duration value) the RPC timeoutsetAuthority
(String value) A single process may be used to run multiple virtual servers with different identities.setAuthorityBytes
(com.google.protobuf.ByteString value) A single process may be used to run multiple virtual servers with different identities.setMetadata
(Metadata value) This contains only the metadata from the application.setMetadata
(Metadata.Builder builderForValue) This contains only the metadata from the application.setMethodName
(String value) The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.setMethodNameBytes
(com.google.protobuf.ByteString value) The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.setTimeout
(com.google.protobuf.Duration value) the RPC timeoutsetTimeout
(com.google.protobuf.Duration.Builder builderForValue) the RPC timeoutMethods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
Field Details
-
bitField0_
private int bitField0_ -
metadata_
-
metadataBuilder_
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder, metadataBuilder_MetadataOrBuilder> -
methodName_
-
authority_
-
timeout_
private com.google.protobuf.Duration timeout_ -
timeoutBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, timeoutBuilder_com.google.protobuf.DurationOrBuilder>
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientHeader.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceClientHeaderOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
getMetadata
in interfaceClientHeaderOrBuilder
- Returns:
- The metadata.
-
setMetadata
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
setMetadata
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
mergeMetadata
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
clearMetadata
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
getMetadataBuilder
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
getMetadataOrBuilder
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
getMetadataOrBuilder
in interfaceClientHeaderOrBuilder
-
internalGetMetadataFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder, internalGetMetadataFieldBuilder()MetadataOrBuilder> This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
-
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 interfaceClientHeaderOrBuilder
- 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 interfaceClientHeaderOrBuilder
- Returns:
- The bytes for methodName.
-
setMethodName
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
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
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
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 interfaceClientHeaderOrBuilder
- 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 interfaceClientHeaderOrBuilder
- Returns:
- The bytes for authority.
-
setAuthority
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
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
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 interfaceClientHeaderOrBuilder
- 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 interfaceClientHeaderOrBuilder
- Returns:
- The timeout.
-
setTimeout
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
setTimeout
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
mergeTimeout
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
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 interfaceClientHeaderOrBuilder
-
internalGetTimeoutFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder, internalGetTimeoutFieldBuilder()com.google.protobuf.DurationOrBuilder> the RPC timeout
.google.protobuf.Duration timeout = 4;
-