Package io.grpc.binarylog.v1
Class ClientHeader.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClientHeader.Builder>
-
- io.grpc.binarylog.v1.ClientHeader.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,ClientHeaderOrBuilder
,Cloneable
- Enclosing class:
- ClientHeader
public static final class ClientHeader.Builder extends GeneratedMessageV3.Builder<ClientHeader.Builder> implements ClientHeaderOrBuilder
Protobuf typegrpc.binarylog.v1.ClientHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientHeader.Builder
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ClientHeader
build()
ClientHeader
buildPartial()
ClientHeader.Builder
clear()
ClientHeader.Builder
clearAuthority()
A single process may be used to run multiple virtual servers with different identities.ClientHeader.Builder
clearField(Descriptors.FieldDescriptor field)
ClientHeader.Builder
clearMetadata()
This contains only the metadata from the application.ClientHeader.Builder
clearMethodName()
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ClientHeader.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
ClientHeader.Builder
clearTimeout()
the RPC timeoutClientHeader.Builder
clone()
String
getAuthority()
A single process may be used to run multiple virtual servers with different identities.ByteString
getAuthorityBytes()
A single process may be used to run multiple virtual servers with different identities.ClientHeader
getDefaultInstanceForType()
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Metadata
getMetadata()
This contains only the metadata from the application.Metadata.Builder
getMetadataBuilder()
This contains only the metadata from the application.MetadataOrBuilder
getMetadataOrBuilder()
This contains only the metadata from the application.String
getMethodName()
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ByteString
getMethodNameBytes()
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.Duration
getTimeout()
the RPC timeoutDuration.Builder
getTimeoutBuilder()
the RPC timeoutDurationOrBuilder
getTimeoutOrBuilder()
the RPC timeoutboolean
hasMetadata()
This contains only the metadata from the application.boolean
hasTimeout()
the RPC timeoutprotected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ClientHeader.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ClientHeader.Builder
mergeFrom(Message other)
ClientHeader.Builder
mergeFrom(ClientHeader other)
ClientHeader.Builder
mergeMetadata(Metadata value)
This contains only the metadata from the application.ClientHeader.Builder
mergeTimeout(Duration value)
the RPC timeoutClientHeader.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
ClientHeader.Builder
setAuthority(String value)
A single process may be used to run multiple virtual servers with different identities.ClientHeader.Builder
setAuthorityBytes(ByteString value)
A single process may be used to run multiple virtual servers with different identities.ClientHeader.Builder
setField(Descriptors.FieldDescriptor field, Object value)
ClientHeader.Builder
setMetadata(Metadata value)
This contains only the metadata from the application.ClientHeader.Builder
setMetadata(Metadata.Builder builderForValue)
This contains only the metadata from the application.ClientHeader.Builder
setMethodName(String value)
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ClientHeader.Builder
setMethodNameBytes(ByteString value)
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ClientHeader.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ClientHeader.Builder
setTimeout(Duration value)
the RPC timeoutClientHeader.Builder
setTimeout(Duration.Builder builderForValue)
the RPC timeoutClientHeader.Builder
setUnknownFields(UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
clear
public ClientHeader.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
getDefaultInstanceForType
public ClientHeader getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public ClientHeader build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public ClientHeader buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public ClientHeader.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
setField
public ClientHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
clearField
public ClientHeader.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
clearOneof
public ClientHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
setRepeatedField
public ClientHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
addRepeatedField
public ClientHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
mergeFrom
public ClientHeader.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<ClientHeader.Builder>
-
mergeFrom
public ClientHeader.Builder mergeFrom(ClientHeader other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
mergeFrom
public ClientHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.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
public Metadata getMetadata()
This contains only the metadata from the application.
.grpc.binarylog.v1.Metadata metadata = 1;
- Specified by:
getMetadata
in interfaceClientHeaderOrBuilder
- 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 interfaceClientHeaderOrBuilder
-
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 interfaceClientHeaderOrBuilder
- Returns:
- The methodName.
-
getMethodNameBytes
public 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
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(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 interfaceClientHeaderOrBuilder
- Returns:
- The authority.
-
getAuthorityBytes
public 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
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(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 interfaceClientHeaderOrBuilder
- Returns:
- Whether the timeout field is set.
-
getTimeout
public Duration getTimeout()
the RPC timeout
.google.protobuf.Duration timeout = 4;
- Specified by:
getTimeout
in interfaceClientHeaderOrBuilder
- Returns:
- The timeout.
-
setTimeout
public ClientHeader.Builder setTimeout(Duration value)
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
setTimeout
public ClientHeader.Builder setTimeout(Duration.Builder builderForValue)
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
mergeTimeout
public ClientHeader.Builder mergeTimeout(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 Duration.Builder getTimeoutBuilder()
the RPC timeout
.google.protobuf.Duration timeout = 4;
-
getTimeoutOrBuilder
public DurationOrBuilder getTimeoutOrBuilder()
the RPC timeout
.google.protobuf.Duration timeout = 4;
- Specified by:
getTimeoutOrBuilder
in interfaceClientHeaderOrBuilder
-
setUnknownFields
public final ClientHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
mergeUnknownFields
public final ClientHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<ClientHeader.Builder>
-
-