Class LocationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
com.google.cloud.networkconnectivity.v1beta.LocationMetadata.Builder
All Implemented Interfaces:
LocationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LocationMetadata

public static final class LocationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder
 Metadata about locations
 
Protobuf type google.cloud.networkconnectivity.v1beta.LocationMetadata
  • 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<LocationMetadata.Builder>
    • clear

      public LocationMetadata.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<LocationMetadata.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<LocationMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public LocationMetadata.Builder mergeFrom(LocationMetadata other)
    • isInitialized

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

      public LocationMetadata.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<LocationMetadata.Builder>
      Throws:
      IOException
    • getLocationFeaturesList

      public List<LocationFeature> getLocationFeaturesList()
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Specified by:
      getLocationFeaturesList in interface LocationMetadataOrBuilder
      Returns:
      A list containing the locationFeatures.
    • getLocationFeaturesCount

      public int getLocationFeaturesCount()
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Specified by:
      getLocationFeaturesCount in interface LocationMetadataOrBuilder
      Returns:
      The count of locationFeatures.
    • getLocationFeatures

      public LocationFeature getLocationFeatures(int index)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Specified by:
      getLocationFeatures in interface LocationMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The locationFeatures at the given index.
    • setLocationFeatures

      public LocationMetadata.Builder setLocationFeatures(int index, LocationFeature value)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      index - The index to set the value at.
      value - The locationFeatures to set.
      Returns:
      This builder for chaining.
    • addLocationFeatures

      public LocationMetadata.Builder addLocationFeatures(LocationFeature value)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      value - The locationFeatures to add.
      Returns:
      This builder for chaining.
    • addAllLocationFeatures

      public LocationMetadata.Builder addAllLocationFeatures(Iterable<? extends LocationFeature> values)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      values - The locationFeatures to add.
      Returns:
      This builder for chaining.
    • clearLocationFeatures

      public LocationMetadata.Builder clearLocationFeatures()
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Returns:
      This builder for chaining.
    • getLocationFeaturesValueList

      public List<Integer> getLocationFeaturesValueList()
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Specified by:
      getLocationFeaturesValueList in interface LocationMetadataOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for locationFeatures.
    • getLocationFeaturesValue

      public int getLocationFeaturesValue(int index)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Specified by:
      getLocationFeaturesValue in interface LocationMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of locationFeatures at the given index.
    • setLocationFeaturesValue

      public LocationMetadata.Builder setLocationFeaturesValue(int index, int value)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for locationFeatures to set.
      Returns:
      This builder for chaining.
    • addLocationFeaturesValue

      public LocationMetadata.Builder addLocationFeaturesValue(int value)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      value - The enum numeric value on the wire for locationFeatures to add.
      Returns:
      This builder for chaining.
    • addAllLocationFeaturesValue

      public LocationMetadata.Builder addAllLocationFeaturesValue(Iterable<Integer> values)
       List of supported features
       
      repeated .google.cloud.networkconnectivity.v1beta.LocationFeature location_features = 1;
      Parameters:
      values - The enum numeric values on the wire for locationFeatures to add.
      Returns:
      This builder for chaining.