public static final class Feature.Builder extends com.google.protobuf.GeneratedMessage.Builder<Feature.Builder> implements FeatureOrBuilder
routeguide.Feature
A feature names something at a given point. If a feature could not be named, the name is empty.
| Modifier and Type | Method and Description |
|---|---|
Feature |
build() |
Feature |
buildPartial() |
Feature.Builder |
clear() |
Feature.Builder |
clearLocation()
optional .routeguide.Point location = 2; |
Feature.Builder |
clearName()
optional string name = 1; |
Feature |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Point |
getLocation()
optional .routeguide.Point location = 2; |
Point.Builder |
getLocationBuilder()
optional .routeguide.Point location = 2; |
PointOrBuilder |
getLocationOrBuilder()
optional .routeguide.Point location = 2; |
String |
getName()
optional string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 1; |
boolean |
hasLocation()
optional .routeguide.Point location = 2; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Feature.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Feature.Builder |
mergeFrom(Feature other) |
Feature.Builder |
mergeFrom(com.google.protobuf.Message other) |
Feature.Builder |
mergeLocation(Point value)
optional .routeguide.Point location = 2; |
Feature.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Feature.Builder |
setLocation(Point.Builder builderForValue)
optional .routeguide.Point location = 2; |
Feature.Builder |
setLocation(Point value)
optional .routeguide.Point location = 2; |
Feature.Builder |
setName(String value)
optional string name = 1; |
Feature.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1; |
Feature.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedFieldfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>public Feature.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>public Feature getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Feature build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Feature buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Feature.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Feature.Builder>public Feature.Builder mergeFrom(Feature other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>public Feature.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Feature.Builder>IOExceptionpublic String getName()
optional string name = 1;
The name of the feature.
getName in interface FeatureOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
optional string name = 1;
The name of the feature.
getNameBytes in interface FeatureOrBuilderpublic Feature.Builder setName(String value)
optional string name = 1;
The name of the feature.
public Feature.Builder clearName()
optional string name = 1;
The name of the feature.
public Feature.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 1;
The name of the feature.
public boolean hasLocation()
optional .routeguide.Point location = 2;
The point where the feature is detected.
hasLocation in interface FeatureOrBuilderpublic Point getLocation()
optional .routeguide.Point location = 2;
The point where the feature is detected.
getLocation in interface FeatureOrBuilderpublic Feature.Builder setLocation(Point value)
optional .routeguide.Point location = 2;
The point where the feature is detected.
public Feature.Builder setLocation(Point.Builder builderForValue)
optional .routeguide.Point location = 2;
The point where the feature is detected.
public Feature.Builder mergeLocation(Point value)
optional .routeguide.Point location = 2;
The point where the feature is detected.
public Feature.Builder clearLocation()
optional .routeguide.Point location = 2;
The point where the feature is detected.
public Point.Builder getLocationBuilder()
optional .routeguide.Point location = 2;
The point where the feature is detected.
public PointOrBuilder getLocationOrBuilder()
optional .routeguide.Point location = 2;
The point where the feature is detected.
getLocationOrBuilder in interface FeatureOrBuilderpublic final Feature.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>public final Feature.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessage.Builder<Feature.Builder>