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.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
,java.lang.Cloneable
- Enclosing class:
- ClientHeader
public static final class ClientHeader.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClientHeader.Builder> implements ClientHeaderOrBuilder
Protobuf typegrpc.binarylog.v1.ClientHeader
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
authority_
private int
bitField0_
private Metadata
metadata_
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder>
metadataBuilder_
private java.lang.Object
methodName_
private com.google.protobuf.Duration
timeout_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
timeoutBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientHeader
build()
ClientHeader
buildPartial()
private void
buildPartial0(ClientHeader result)
ClientHeader.Builder
clear()
ClientHeader.Builder
clearAuthority()
A single process may be used to run multiple virtual servers with different identities.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
clearTimeout()
the RPC timeoutjava.lang.String
getAuthority()
A single process may be used to run multiple virtual servers with different identities.com.google.protobuf.ByteString
getAuthorityBytes()
A single process may be used to run multiple virtual servers with different identities.ClientHeader
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Metadata
getMetadata()
This contains only the metadata from the application.Metadata.Builder
getMetadataBuilder()
This contains only the metadata from the application.private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder>
getMetadataFieldBuilder()
This contains only the metadata from the application.MetadataOrBuilder
getMetadataOrBuilder()
This contains only the metadata from the application.java.lang.String
getMethodName()
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.com.google.protobuf.ByteString
getMethodNameBytes()
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.com.google.protobuf.Duration
getTimeout()
the RPC timeoutcom.google.protobuf.Duration.Builder
getTimeoutBuilder()
the RPC timeoutprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
getTimeoutFieldBuilder()
the RPC timeoutcom.google.protobuf.DurationOrBuilder
getTimeoutOrBuilder()
the RPC timeoutboolean
hasMetadata()
This contains only the metadata from the application.boolean
hasTimeout()
the RPC timeoutprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
ClientHeader.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ClientHeader.Builder
mergeFrom(com.google.protobuf.Message other)
ClientHeader.Builder
mergeFrom(ClientHeader other)
ClientHeader.Builder
mergeMetadata(Metadata value)
This contains only the metadata from the application.ClientHeader.Builder
mergeTimeout(com.google.protobuf.Duration value)
the RPC timeoutClientHeader.Builder
setAuthority(java.lang.String value)
A single process may be used to run multiple virtual servers with different identities.ClientHeader.Builder
setAuthorityBytes(com.google.protobuf.ByteString value)
A single process may be used to run multiple virtual servers with different identities.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(java.lang.String value)
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ClientHeader.Builder
setMethodNameBytes(com.google.protobuf.ByteString value)
The name of the RPC method, which looks something like: /<service>/<method> Note the leading "/" character.ClientHeader.Builder
setTimeout(com.google.protobuf.Duration value)
the RPC timeoutClientHeader.Builder
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
the RPC timeout-
Methods 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
metadata_
private Metadata metadata_
-
metadataBuilder_
private com.google.protobuf.SingleFieldBuilder<Metadata,Metadata.Builder,MetadataOrBuilder> metadataBuilder_
-
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_
-
-
Method Detail
-
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
public ClientHeader.Builder 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
public ClientHeader getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClientHeader build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClientHeader buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(ClientHeader result)
-
mergeFrom
public ClientHeader.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClientHeader.Builder>
-
mergeFrom
public ClientHeader.Builder mergeFrom(ClientHeader other)
-
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 java.io.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:
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 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
-
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 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
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 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
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 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
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 interfaceClientHeaderOrBuilder
-
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;
-
-