Class RouteMatrixElement.LocalizedValues.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.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.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
      • getDefaultInstanceForType

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

        public RouteMatrixElement.LocalizedValues build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RouteMatrixElement.LocalizedValues buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
      • setDistance

        public RouteMatrixElement.LocalizedValues.Builder setDistance​(com.google.type.LocalizedText.Builder builderForValue)
         Travel distance represented in text form.
         
        .google.type.LocalizedText distance = 1;
      • getDistanceBuilder

        public com.google.type.LocalizedText.Builder getDistanceBuilder()
         Travel distance represented in text form.
         
        .google.type.LocalizedText distance = 1;
      • hasDuration

        public boolean hasDuration()
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
        Specified by:
        hasDuration in interface RouteMatrixElement.LocalizedValuesOrBuilder
        Returns:
        Whether the duration field is set.
      • getDuration

        public com.google.type.LocalizedText getDuration()
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
        Specified by:
        getDuration in interface RouteMatrixElement.LocalizedValuesOrBuilder
        Returns:
        The duration.
      • setDuration

        public RouteMatrixElement.LocalizedValues.Builder setDuration​(com.google.type.LocalizedText value)
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
      • setDuration

        public RouteMatrixElement.LocalizedValues.Builder setDuration​(com.google.type.LocalizedText.Builder builderForValue)
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
      • mergeDuration

        public RouteMatrixElement.LocalizedValues.Builder mergeDuration​(com.google.type.LocalizedText value)
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
      • clearDuration

        public RouteMatrixElement.LocalizedValues.Builder clearDuration()
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
      • getDurationBuilder

        public com.google.type.LocalizedText.Builder getDurationBuilder()
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
      • getDurationOrBuilder

        public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder()
         Duration represented in text form taking traffic conditions into
         consideration. Note: If traffic information was not requested, this value
         is the same value as static_duration.
         
        .google.type.LocalizedText duration = 2;
        Specified by:
        getDurationOrBuilder in interface RouteMatrixElement.LocalizedValuesOrBuilder
      • hasStaticDuration

        public boolean hasStaticDuration()
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
        Specified by:
        hasStaticDuration in interface RouteMatrixElement.LocalizedValuesOrBuilder
        Returns:
        Whether the staticDuration field is set.
      • getStaticDuration

        public com.google.type.LocalizedText getStaticDuration()
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
        Specified by:
        getStaticDuration in interface RouteMatrixElement.LocalizedValuesOrBuilder
        Returns:
        The staticDuration.
      • setStaticDuration

        public RouteMatrixElement.LocalizedValues.Builder setStaticDuration​(com.google.type.LocalizedText value)
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
      • setStaticDuration

        public RouteMatrixElement.LocalizedValues.Builder setStaticDuration​(com.google.type.LocalizedText.Builder builderForValue)
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
      • mergeStaticDuration

        public RouteMatrixElement.LocalizedValues.Builder mergeStaticDuration​(com.google.type.LocalizedText value)
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
      • clearStaticDuration

        public RouteMatrixElement.LocalizedValues.Builder clearStaticDuration()
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
      • getStaticDurationBuilder

        public com.google.type.LocalizedText.Builder getStaticDurationBuilder()
         Duration represented in text form without taking traffic conditions into
         consideration.
         
        .google.type.LocalizedText static_duration = 3;
      • setTransitFare

        public RouteMatrixElement.LocalizedValues.Builder setTransitFare​(com.google.type.LocalizedText.Builder builderForValue)
         Transit fare represented in text form.
         
        .google.type.LocalizedText transit_fare = 4;
      • mergeTransitFare

        public RouteMatrixElement.LocalizedValues.Builder mergeTransitFare​(com.google.type.LocalizedText value)
         Transit fare represented in text form.
         
        .google.type.LocalizedText transit_fare = 4;
      • getTransitFareBuilder

        public com.google.type.LocalizedText.Builder getTransitFareBuilder()
         Transit fare represented in text form.
         
        .google.type.LocalizedText transit_fare = 4;