Class UpdateCustomMetricRequest.Builder

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

public static final class UpdateCustomMetricRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateCustomMetricRequest.Builder> implements UpdateCustomMetricRequestOrBuilder
 Request message for UpdateCustomMetric RPC.
 
Protobuf type google.analytics.admin.v1alpha.UpdateCustomMetricRequest
  • 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<UpdateCustomMetricRequest.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<UpdateCustomMetricRequest.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<UpdateCustomMetricRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateCustomMetricRequest.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<UpdateCustomMetricRequest.Builder>
      Throws:
      IOException
    • hasCustomMetric

      public boolean hasCustomMetric()
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
      Specified by:
      hasCustomMetric in interface UpdateCustomMetricRequestOrBuilder
      Returns:
      Whether the customMetric field is set.
    • getCustomMetric

      public CustomMetric getCustomMetric()
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
      Specified by:
      getCustomMetric in interface UpdateCustomMetricRequestOrBuilder
      Returns:
      The customMetric.
    • setCustomMetric

      public UpdateCustomMetricRequest.Builder setCustomMetric(CustomMetric value)
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
    • setCustomMetric

      public UpdateCustomMetricRequest.Builder setCustomMetric(CustomMetric.Builder builderForValue)
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
    • mergeCustomMetric

      public UpdateCustomMetricRequest.Builder mergeCustomMetric(CustomMetric value)
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
    • clearCustomMetric

      public UpdateCustomMetricRequest.Builder clearCustomMetric()
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
    • getCustomMetricBuilder

      public CustomMetric.Builder getCustomMetricBuilder()
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
    • getCustomMetricOrBuilder

      public CustomMetricOrBuilder getCustomMetricOrBuilder()
       The CustomMetric to update
       
      .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1;
      Specified by:
      getCustomMetricOrBuilder in interface UpdateCustomMetricRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasUpdateMask in interface UpdateCustomMetricRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMask in interface UpdateCustomMetricRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateCustomMetricRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • setUpdateMask

      public UpdateCustomMetricRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeUpdateMask

      public UpdateCustomMetricRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearUpdateMask

      public UpdateCustomMetricRequest.Builder clearUpdateMask()
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Required. The list of fields to be updated. Omitted fields will not be
       updated. To replace the entire entity, use one path with the string "*" to
       match all fields.
       
      .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateCustomMetricRequestOrBuilder