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 Objectprivate intprivate Metadataprivate com.google.protobuf.SingleFieldBuilder<Metadata, Metadata.Builder, MetadataOrBuilder> private Objectprivate com.google.protobuf.Durationprivate 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 voidbuildPartial0(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.ByteStringA single process may be used to run multiple virtual servers with different identities.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThis 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.ByteStringThe name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.com.google.protobuf.Durationthe RPC timeoutcom.google.protobuf.Duration.Builderthe RPC timeoutcom.google.protobuf.DurationOrBuilderthe RPC timeoutbooleanThis contains only the metadata from the application.booleanthe RPC timeoutprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate 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 booleanprivate voidmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClientHeader.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasMetadatain 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:
getMetadatain 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:
getMetadataOrBuilderin 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:
getMethodNamein 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:
getMethodNameBytesin 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:
getAuthorityin 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:
getAuthorityBytesin 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:
hasTimeoutin 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:
getTimeoutin 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:
getTimeoutOrBuilderin 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;
-