com.google.protobuf
Class DescriptorProtos.UninterpretedOption.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
      extended by com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
          extended by com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder
All Implemented Interfaces:
Message.Builder, java.lang.Cloneable
Enclosing class:
DescriptorProtos.UninterpretedOption

public static final class DescriptorProtos.UninterpretedOption.Builder
extends GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>


Method Summary
 DescriptorProtos.UninterpretedOption.Builder addAllName(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption.NamePart> values)
           
 DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue)
           
 DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart value)
           
 DescriptorProtos.UninterpretedOption build()
          Construct the final message.
 DescriptorProtos.UninterpretedOption buildPartial()
          Like Message.Builder.build(), but does not throw an exception if the message is missing required fields.
 DescriptorProtos.UninterpretedOption.Builder clear()
          Resets all fields to their default values.
 DescriptorProtos.UninterpretedOption.Builder clearDoubleValue()
           
 DescriptorProtos.UninterpretedOption.Builder clearIdentifierValue()
           
 DescriptorProtos.UninterpretedOption.Builder clearName()
           
 DescriptorProtos.UninterpretedOption.Builder clearNegativeIntValue()
           
 DescriptorProtos.UninterpretedOption.Builder clearPositiveIntValue()
           
 DescriptorProtos.UninterpretedOption.Builder clearStringValue()
           
 DescriptorProtos.UninterpretedOption.Builder clone()
          Clones the Builder.
 DescriptorProtos.UninterpretedOption getDefaultInstanceForType()
          Get the message's type's default instance.
 Descriptors.Descriptor getDescriptorForType()
          Get the message's type's descriptor.
 double getDoubleValue()
           
 java.lang.String getIdentifierValue()
           
 DescriptorProtos.UninterpretedOption.NamePart getName(int index)
           
 int getNameCount()
           
 java.util.List<DescriptorProtos.UninterpretedOption.NamePart> getNameList()
           
 long getNegativeIntValue()
           
 long getPositiveIntValue()
           
 ByteString getStringValue()
           
 boolean hasDoubleValue()
           
 boolean hasIdentifierValue()
           
 boolean hasNegativeIntValue()
           
 boolean hasPositiveIntValue()
           
 boolean hasStringValue()
           
protected  DescriptorProtos.UninterpretedOption internalGetResult()
          Get the message being built.
 DescriptorProtos.UninterpretedOption.Builder mergeFrom(CodedInputStream input)
          Parses a message of this type from the input and merges it with this message, as if using Message.Builder.mergeFrom(Message).
 DescriptorProtos.UninterpretedOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistry extensionRegistry)
          Like Message.Builder.mergeFrom(CodedInputStream), but also parses extensions.
 DescriptorProtos.UninterpretedOption.Builder mergeFrom(DescriptorProtos.UninterpretedOption other)
           
 DescriptorProtos.UninterpretedOption.Builder mergeFrom(Message other)
          Merge other into the message being built.
 DescriptorProtos.UninterpretedOption.Builder setDoubleValue(double value)
           
 DescriptorProtos.UninterpretedOption.Builder setIdentifierValue(java.lang.String value)
           
 DescriptorProtos.UninterpretedOption.Builder setName(int index, DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue)
           
 DescriptorProtos.UninterpretedOption.Builder setName(int index, DescriptorProtos.UninterpretedOption.NamePart value)
           
 DescriptorProtos.UninterpretedOption.Builder setNegativeIntValue(long value)
           
 DescriptorProtos.UninterpretedOption.Builder setPositiveIntValue(long value)
           
 DescriptorProtos.UninterpretedOption.Builder setStringValue(ByteString value)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addAll, addRepeatedField, clearField, getAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isInitialized, mergeUnknownFields, newBuilderForField, parseUnknownField, setField, setRepeatedField, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

internalGetResult

protected DescriptorProtos.UninterpretedOption internalGetResult()
Description copied from class: GeneratedMessage.Builder
Get the message being built. We don't just pass this to the constructor because it becomes null when build() is called.

Specified by:
internalGetResult in class GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>

clear

public DescriptorProtos.UninterpretedOption.Builder clear()
Description copied from interface: Message.Builder
Resets all fields to their default values.

Specified by:
clear in interface Message.Builder
Overrides:
clear in class AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>

clone

public DescriptorProtos.UninterpretedOption.Builder clone()
Description copied from interface: Message.Builder
Clones the Builder.

Specified by:
clone in interface Message.Builder
Specified by:
clone in class AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
See Also:
Object.clone()

getDescriptorForType

public Descriptors.Descriptor getDescriptorForType()
Description copied from interface: Message.Builder
Get the message's type's descriptor. See Message.getDescriptorForType().

Specified by:
getDescriptorForType in interface Message.Builder
Overrides:
getDescriptorForType in class GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>

getDefaultInstanceForType

public DescriptorProtos.UninterpretedOption getDefaultInstanceForType()
Description copied from interface: Message.Builder
Get the message's type's default instance. See Message.getDefaultInstanceForType().


build

public DescriptorProtos.UninterpretedOption build()
Description copied from interface: Message.Builder
Construct the final message. Once this is called, the Builder is no longer valid, and calling any other method may throw a NullPointerException. If you need to continue working with the builder after calling build(), clone() it first.


buildPartial

public DescriptorProtos.UninterpretedOption buildPartial()
Description copied from interface: Message.Builder
Like Message.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned.


mergeFrom

public DescriptorProtos.UninterpretedOption.Builder mergeFrom(Message other)
Description copied from interface: Message.Builder
Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()). Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
* For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements in other are concatenated with the elements in this message. This is equivalent to the Message::MergeFrom method in C++.

Specified by:
mergeFrom in interface Message.Builder
Overrides:
mergeFrom in class GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>

mergeFrom

public DescriptorProtos.UninterpretedOption.Builder mergeFrom(DescriptorProtos.UninterpretedOption other)

mergeFrom

public DescriptorProtos.UninterpretedOption.Builder mergeFrom(CodedInputStream input)
                                                       throws java.io.IOException
Description copied from interface: Message.Builder
Parses a message of this type from the input and merges it with this message, as if using Message.Builder.mergeFrom(Message).

Warning: This does not verify that all required fields are present in the input message. If you call Message.Builder.build() without setting all required fields, it will throw an UninitializedMessageException, which is a RuntimeException and thus might not be caught. There are a few good ways to deal with this:

Note: The caller should call CodedInputStream.checkLastTagWas(int) after calling this to verify that the last tag seen was the appropriate end-group tag, or zero for EOF.

Specified by:
mergeFrom in interface Message.Builder
Overrides:
mergeFrom in class AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
Throws:
java.io.IOException

mergeFrom

public DescriptorProtos.UninterpretedOption.Builder mergeFrom(CodedInputStream input,
                                                              ExtensionRegistry extensionRegistry)
                                                       throws java.io.IOException
Description copied from interface: Message.Builder
Like Message.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in extensionRegistry. Extensions not in the registry will be treated as unknown fields.

Specified by:
mergeFrom in interface Message.Builder
Overrides:
mergeFrom in class AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
Throws:
java.io.IOException

getNameList

public java.util.List<DescriptorProtos.UninterpretedOption.NamePart> getNameList()

getNameCount

public int getNameCount()

getName

public DescriptorProtos.UninterpretedOption.NamePart getName(int index)

setName

public DescriptorProtos.UninterpretedOption.Builder setName(int index,
                                                            DescriptorProtos.UninterpretedOption.NamePart value)

setName

public DescriptorProtos.UninterpretedOption.Builder setName(int index,
                                                            DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue)

addName

public DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart value)

addName

public DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue)

addAllName

public DescriptorProtos.UninterpretedOption.Builder addAllName(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption.NamePart> values)

clearName

public DescriptorProtos.UninterpretedOption.Builder clearName()

hasIdentifierValue

public boolean hasIdentifierValue()

getIdentifierValue

public java.lang.String getIdentifierValue()

setIdentifierValue

public DescriptorProtos.UninterpretedOption.Builder setIdentifierValue(java.lang.String value)

clearIdentifierValue

public DescriptorProtos.UninterpretedOption.Builder clearIdentifierValue()

hasPositiveIntValue

public boolean hasPositiveIntValue()

getPositiveIntValue

public long getPositiveIntValue()

setPositiveIntValue

public DescriptorProtos.UninterpretedOption.Builder setPositiveIntValue(long value)

clearPositiveIntValue

public DescriptorProtos.UninterpretedOption.Builder clearPositiveIntValue()

hasNegativeIntValue

public boolean hasNegativeIntValue()

getNegativeIntValue

public long getNegativeIntValue()

setNegativeIntValue

public DescriptorProtos.UninterpretedOption.Builder setNegativeIntValue(long value)

clearNegativeIntValue

public DescriptorProtos.UninterpretedOption.Builder clearNegativeIntValue()

hasDoubleValue

public boolean hasDoubleValue()

getDoubleValue

public double getDoubleValue()

setDoubleValue

public DescriptorProtos.UninterpretedOption.Builder setDoubleValue(double value)

clearDoubleValue

public DescriptorProtos.UninterpretedOption.Builder clearDoubleValue()

hasStringValue

public boolean hasStringValue()

getStringValue

public ByteString getStringValue()

setStringValue

public DescriptorProtos.UninterpretedOption.Builder setStringValue(ByteString value)

clearStringValue

public DescriptorProtos.UninterpretedOption.Builder clearStringValue()


Copyright © 2008-2009. All Rights Reserved.