Class ListCustomMetricsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListCustomMetricsResponse.Builder>
com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder
All Implemented Interfaces:
ListCustomMetricsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListCustomMetricsResponse

public static final class ListCustomMetricsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListCustomMetricsResponse.Builder> implements ListCustomMetricsResponseOrBuilder
 Response message for ListCustomMetrics RPC.
 
Protobuf type google.analytics.admin.v1alpha.ListCustomMetricsResponse
  • 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<ListCustomMetricsResponse.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<ListCustomMetricsResponse.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<ListCustomMetricsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListCustomMetricsResponse.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<ListCustomMetricsResponse.Builder>
      Throws:
      IOException
    • getCustomMetricsList

      public List<CustomMetric> getCustomMetricsList()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
      Specified by:
      getCustomMetricsList in interface ListCustomMetricsResponseOrBuilder
    • getCustomMetricsCount

      public int getCustomMetricsCount()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
      Specified by:
      getCustomMetricsCount in interface ListCustomMetricsResponseOrBuilder
    • getCustomMetrics

      public CustomMetric getCustomMetrics(int index)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
      Specified by:
      getCustomMetrics in interface ListCustomMetricsResponseOrBuilder
    • setCustomMetrics

      public ListCustomMetricsResponse.Builder setCustomMetrics(int index, CustomMetric value)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • setCustomMetrics

      public ListCustomMetricsResponse.Builder setCustomMetrics(int index, CustomMetric.Builder builderForValue)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addCustomMetrics

      public ListCustomMetricsResponse.Builder addCustomMetrics(CustomMetric value)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addCustomMetrics

      public ListCustomMetricsResponse.Builder addCustomMetrics(int index, CustomMetric value)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addCustomMetrics

      public ListCustomMetricsResponse.Builder addCustomMetrics(CustomMetric.Builder builderForValue)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addCustomMetrics

      public ListCustomMetricsResponse.Builder addCustomMetrics(int index, CustomMetric.Builder builderForValue)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addAllCustomMetrics

      public ListCustomMetricsResponse.Builder addAllCustomMetrics(Iterable<? extends CustomMetric> values)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • clearCustomMetrics

      public ListCustomMetricsResponse.Builder clearCustomMetrics()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • removeCustomMetrics

      public ListCustomMetricsResponse.Builder removeCustomMetrics(int index)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • getCustomMetricsBuilder

      public CustomMetric.Builder getCustomMetricsBuilder(int index)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • getCustomMetricsOrBuilder

      public CustomMetricOrBuilder getCustomMetricsOrBuilder(int index)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
      Specified by:
      getCustomMetricsOrBuilder in interface ListCustomMetricsResponseOrBuilder
    • getCustomMetricsOrBuilderList

      public List<? extends CustomMetricOrBuilder> getCustomMetricsOrBuilderList()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
      Specified by:
      getCustomMetricsOrBuilderList in interface ListCustomMetricsResponseOrBuilder
    • addCustomMetricsBuilder

      public CustomMetric.Builder addCustomMetricsBuilder()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • addCustomMetricsBuilder

      public CustomMetric.Builder addCustomMetricsBuilder(int index)
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • getCustomMetricsBuilderList

      public List<CustomMetric.Builder> getCustomMetricsBuilderList()
       List of CustomMetrics.
       
      repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1;
    • getNextPageToken

      public String getNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListCustomMetricsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListCustomMetricsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListCustomMetricsResponse.Builder setNextPageToken(String value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListCustomMetricsResponse.Builder clearNextPageToken()
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListCustomMetricsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token, which can be sent as `page_token` to retrieve the next page.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.