Class CreateMetricDescriptorRequest.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<CreateMetricDescriptorRequest.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<CreateMetricDescriptorRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateMetricDescriptorRequest.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<CreateMetricDescriptorRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface CreateMetricDescriptorRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface CreateMetricDescriptorRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CreateMetricDescriptorRequest.Builder setName​(String value)
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CreateMetricDescriptorRequest.Builder clearName()
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public CreateMetricDescriptorRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) on
         which to execute the request. The format is:
         4
             projects/[PROJECT_ID_OR_NUMBER]
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasMetricDescriptor

        public boolean hasMetricDescriptor()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasMetricDescriptor in interface CreateMetricDescriptorRequestOrBuilder
        Returns:
        Whether the metricDescriptor field is set.
      • getMetricDescriptor

        public com.google.api.MetricDescriptor getMetricDescriptor()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMetricDescriptor in interface CreateMetricDescriptorRequestOrBuilder
        Returns:
        The metricDescriptor.
      • setMetricDescriptor

        public CreateMetricDescriptorRequest.Builder setMetricDescriptor​(com.google.api.MetricDescriptor value)
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
      • setMetricDescriptor

        public CreateMetricDescriptorRequest.Builder setMetricDescriptor​(com.google.api.MetricDescriptor.Builder builderForValue)
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeMetricDescriptor

        public CreateMetricDescriptorRequest.Builder mergeMetricDescriptor​(com.google.api.MetricDescriptor value)
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearMetricDescriptor

        public CreateMetricDescriptorRequest.Builder clearMetricDescriptor()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
      • getMetricDescriptorBuilder

        public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
      • getMetricDescriptorOrBuilder

        public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder()
         Required. The new [custom metric](https://cloud.google.com/monitoring/custom-metrics)
         descriptor.
         
        .google.api.MetricDescriptor metric_descriptor = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMetricDescriptorOrBuilder in interface CreateMetricDescriptorRequestOrBuilder