Package io.grpc.binarylog.v1
Class Message.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Message.Builder>
-
- io.grpc.binarylog.v1.Message.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,MessageOrBuilder
,Cloneable
- Enclosing class:
- Message
public static final class Message.Builder extends GeneratedMessageV3.Builder<Message.Builder> implements MessageOrBuilder
Message payload, used by CLIENT_MESSAGE and SERVER_MESSAGE
Protobuf typegrpc.binarylog.v1.Message
-
-
Method Summary
-
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<Message.Builder>
-
clear
public Message.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<Message.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<Message.Builder>
-
getDefaultInstanceForType
public Message getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public Message build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public Message buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public Message.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<Message.Builder>
-
setField
public Message.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<Message.Builder>
-
clearField
public Message.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<Message.Builder>
-
clearOneof
public Message.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<Message.Builder>
-
setRepeatedField
public Message.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<Message.Builder>
-
addRepeatedField
public Message.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<Message.Builder>
-
mergeFrom
public Message.Builder mergeFrom(Message other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<Message.Builder>
-
mergeFrom
public Message.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<Message.Builder>
- Throws:
IOException
-
getLength
public int getLength()
Length of the message. It may not be the same as the length of the data field, as the logging payload can be truncated or omitted.
uint32 length = 1;
- Specified by:
getLength
in interfaceMessageOrBuilder
- Returns:
- The length.
-
setLength
public Message.Builder setLength(int value)
Length of the message. It may not be the same as the length of the data field, as the logging payload can be truncated or omitted.
uint32 length = 1;
- Parameters:
value
- The length to set.- Returns:
- This builder for chaining.
-
clearLength
public Message.Builder clearLength()
Length of the message. It may not be the same as the length of the data field, as the logging payload can be truncated or omitted.
uint32 length = 1;
- Returns:
- This builder for chaining.
-
getData
public ByteString getData()
May be truncated or omitted.
bytes data = 2;
- Specified by:
getData
in interfaceMessageOrBuilder
- Returns:
- The data.
-
setData
public Message.Builder setData(ByteString value)
May be truncated or omitted.
bytes data = 2;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
public Message.Builder clearData()
May be truncated or omitted.
bytes data = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Message.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<Message.Builder>
-
mergeUnknownFields
public final Message.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<Message.Builder>
-
-