Class MonitoredProject.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MonitoredProject.Builder>
com.google.monitoring.metricsscope.v1.MonitoredProject.Builder
All Implemented Interfaces:
MonitoredProjectOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MonitoredProject

public static final class MonitoredProject.Builder extends com.google.protobuf.GeneratedMessage.Builder<MonitoredProject.Builder> implements MonitoredProjectOrBuilder
 A [project being
 monitored](https://cloud.google.com/monitoring/settings/multiple-projects#create-multi)
 by a `Metrics Scope`.
 
Protobuf type google.monitoring.metricsscope.v1.MonitoredProject
  • 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<MonitoredProject.Builder>
    • clear

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

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

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

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

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

      public MonitoredProject.Builder mergeFrom(MonitoredProject other)
    • isInitialized

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

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

      public String getName()
       Immutable. The resource name of the `MonitoredProject`. On input, the resource name
       includes the scoping project ID and monitored project ID. On output, it
       contains the equivalent project numbers.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface MonitoredProjectOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The resource name of the `MonitoredProject`. On input, the resource name
       includes the scoping project ID and monitored project ID. On output, it
       contains the equivalent project numbers.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface MonitoredProjectOrBuilder
      Returns:
      The bytes for name.
    • setName

      public MonitoredProject.Builder setName(String value)
       Immutable. The resource name of the `MonitoredProject`. On input, the resource name
       includes the scoping project ID and monitored project ID. On output, it
       contains the equivalent project numbers.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public MonitoredProject.Builder clearName()
       Immutable. The resource name of the `MonitoredProject`. On input, the resource name
       includes the scoping project ID and monitored project ID. On output, it
       contains the equivalent project numbers.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public MonitoredProject.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the `MonitoredProject`. On input, the resource name
       includes the scoping project ID and monitored project ID. On output, it
       contains the equivalent project numbers.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MonitoredProjectOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MonitoredProjectOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public MonitoredProject.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public MonitoredProject.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public MonitoredProject.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public MonitoredProject.Builder clearCreateTime()
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when this `MonitoredProject` was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MonitoredProjectOrBuilder