Class PolylineDetails.PolylinePointIndex.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolylineDetails.PolylinePointIndex.Builder>
com.google.maps.routing.v2.PolylineDetails.PolylinePointIndex.Builder
All Implemented Interfaces:
PolylineDetails.PolylinePointIndexOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolylineDetails.PolylinePointIndex

public static final class PolylineDetails.PolylinePointIndex.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolylineDetails.PolylinePointIndex.Builder> implements PolylineDetails.PolylinePointIndexOrBuilder
 Encapsulates the start and end indexes for a polyline detail.
 For instances where the data corresponds to a single point, `start_index`
 and `end_index` will be equal.
 
Protobuf type google.maps.routing.v2.PolylineDetails.PolylinePointIndex
  • Method Details

    • 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<PolylineDetails.PolylinePointIndex.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<PolylineDetails.PolylinePointIndex.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<PolylineDetails.PolylinePointIndex.Builder>
    • getDefaultInstanceForType

      public PolylineDetails.PolylinePointIndex getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PolylineDetails.PolylinePointIndex buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PolylineDetails.PolylinePointIndex.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<PolylineDetails.PolylinePointIndex.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PolylineDetails.PolylinePointIndex.Builder>
    • mergeFrom

      public PolylineDetails.PolylinePointIndex.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<PolylineDetails.PolylinePointIndex.Builder>
      Throws:
      IOException
    • hasStartIndex

      public boolean hasStartIndex()
       The start index of this detail in the polyline.
       
      optional int32 start_index = 1;
      Specified by:
      hasStartIndex in interface PolylineDetails.PolylinePointIndexOrBuilder
      Returns:
      Whether the startIndex field is set.
    • getStartIndex

      public int getStartIndex()
       The start index of this detail in the polyline.
       
      optional int32 start_index = 1;
      Specified by:
      getStartIndex in interface PolylineDetails.PolylinePointIndexOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public PolylineDetails.PolylinePointIndex.Builder setStartIndex(int value)
       The start index of this detail in the polyline.
       
      optional int32 start_index = 1;
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

       The start index of this detail in the polyline.
       
      optional int32 start_index = 1;
      Returns:
      This builder for chaining.
    • hasEndIndex

      public boolean hasEndIndex()
       The end index of this detail in the polyline.
       
      optional int32 end_index = 2;
      Specified by:
      hasEndIndex in interface PolylineDetails.PolylinePointIndexOrBuilder
      Returns:
      Whether the endIndex field is set.
    • getEndIndex

      public int getEndIndex()
       The end index of this detail in the polyline.
       
      optional int32 end_index = 2;
      Specified by:
      getEndIndex in interface PolylineDetails.PolylinePointIndexOrBuilder
      Returns:
      The endIndex.
    • setEndIndex

      public PolylineDetails.PolylinePointIndex.Builder setEndIndex(int value)
       The end index of this detail in the polyline.
       
      optional int32 end_index = 2;
      Parameters:
      value - The endIndex to set.
      Returns:
      This builder for chaining.
    • clearEndIndex

       The end index of this detail in the polyline.
       
      optional int32 end_index = 2;
      Returns:
      This builder for chaining.