org.apache.flume.channel.file.proto
Class ProtosFactory.FlumeEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
org.apache.flume.channel.file.proto.ProtosFactory.FlumeEvent.Builder
- All Implemented Interfaces:
- com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ProtosFactory.FlumeEventOrBuilder
- Enclosing class:
- ProtosFactory.FlumeEvent
public static final class ProtosFactory.FlumeEvent.Builder
- extends com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
- implements ProtosFactory.FlumeEventOrBuilder
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder |
addRepeatedField, clearField, getAllFields, getField, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields |
Methods inherited from class com.google.protobuf.AbstractMessage.Builder |
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException |
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder |
addAll, newUninitializedMessageException |
Methods inherited from interface com.google.protobuf.MessageOrBuilder |
getAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField |
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
clear
public ProtosFactory.FlumeEvent.Builder clear()
- Specified by:
clear
in interface com.google.protobuf.Message.Builder
- Specified by:
clear
in interface com.google.protobuf.MessageLite.Builder
- Overrides:
clear
in class com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
clone
public ProtosFactory.FlumeEvent.Builder clone()
- Specified by:
clone
in interface com.google.protobuf.Message.Builder
- Specified by:
clone
in interface com.google.protobuf.MessageLite.Builder
- Overrides:
clone
in class com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interface com.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
getDefaultInstanceForType
public ProtosFactory.FlumeEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
build
public ProtosFactory.FlumeEvent build()
- Specified by:
build
in interface com.google.protobuf.Message.Builder
- Specified by:
build
in interface com.google.protobuf.MessageLite.Builder
buildPartial
public ProtosFactory.FlumeEvent buildPartial()
- Specified by:
buildPartial
in interface com.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
public ProtosFactory.FlumeEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interface com.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ProtosFactory.FlumeEvent.Builder>
mergeFrom
public ProtosFactory.FlumeEvent.Builder mergeFrom(ProtosFactory.FlumeEvent other)
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<ProtosFactory.FlumeEvent.Builder>
mergeFrom
public ProtosFactory.FlumeEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws IOException
- Specified by:
mergeFrom
in interface com.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ProtosFactory.FlumeEvent.Builder>
- Throws:
IOException
getHeadersList
public List<ProtosFactory.FlumeEventHeader> getHeadersList()
- Specified by:
getHeadersList
in interface ProtosFactory.FlumeEventOrBuilder
getHeadersCount
public int getHeadersCount()
- Specified by:
getHeadersCount
in interface ProtosFactory.FlumeEventOrBuilder
getHeaders
public ProtosFactory.FlumeEventHeader getHeaders(int index)
- Specified by:
getHeaders
in interface ProtosFactory.FlumeEventOrBuilder
setHeaders
public ProtosFactory.FlumeEvent.Builder setHeaders(int index,
ProtosFactory.FlumeEventHeader value)
setHeaders
public ProtosFactory.FlumeEvent.Builder setHeaders(int index,
ProtosFactory.FlumeEventHeader.Builder builderForValue)
addHeaders
public ProtosFactory.FlumeEvent.Builder addHeaders(ProtosFactory.FlumeEventHeader value)
addHeaders
public ProtosFactory.FlumeEvent.Builder addHeaders(int index,
ProtosFactory.FlumeEventHeader value)
addHeaders
public ProtosFactory.FlumeEvent.Builder addHeaders(ProtosFactory.FlumeEventHeader.Builder builderForValue)
addHeaders
public ProtosFactory.FlumeEvent.Builder addHeaders(int index,
ProtosFactory.FlumeEventHeader.Builder builderForValue)
addAllHeaders
public ProtosFactory.FlumeEvent.Builder addAllHeaders(Iterable<? extends ProtosFactory.FlumeEventHeader> values)
clearHeaders
public ProtosFactory.FlumeEvent.Builder clearHeaders()
removeHeaders
public ProtosFactory.FlumeEvent.Builder removeHeaders(int index)
getHeadersBuilder
public ProtosFactory.FlumeEventHeader.Builder getHeadersBuilder(int index)
getHeadersOrBuilder
public ProtosFactory.FlumeEventHeaderOrBuilder getHeadersOrBuilder(int index)
- Specified by:
getHeadersOrBuilder
in interface ProtosFactory.FlumeEventOrBuilder
getHeadersOrBuilderList
public List<? extends ProtosFactory.FlumeEventHeaderOrBuilder> getHeadersOrBuilderList()
- Specified by:
getHeadersOrBuilderList
in interface ProtosFactory.FlumeEventOrBuilder
addHeadersBuilder
public ProtosFactory.FlumeEventHeader.Builder addHeadersBuilder()
addHeadersBuilder
public ProtosFactory.FlumeEventHeader.Builder addHeadersBuilder(int index)
getHeadersBuilderList
public List<ProtosFactory.FlumeEventHeader.Builder> getHeadersBuilderList()
hasBody
public boolean hasBody()
- Specified by:
hasBody
in interface ProtosFactory.FlumeEventOrBuilder
getBody
public com.google.protobuf.ByteString getBody()
- Specified by:
getBody
in interface ProtosFactory.FlumeEventOrBuilder
setBody
public ProtosFactory.FlumeEvent.Builder setBody(com.google.protobuf.ByteString value)
clearBody
public ProtosFactory.FlumeEvent.Builder clearBody()
Copyright © 2009-2013 Apache Software Foundation. All Rights Reserved.