Class CreateMonitoredProjectRequest.Builder

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

public static final class CreateMonitoredProjectRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder
 Request for the `CreateMonitoredProject` method.
 
Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest
  • 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<CreateMonitoredProjectRequest.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<CreateMonitoredProjectRequest.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<CreateMonitoredProjectRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public CreateMonitoredProjectRequest.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<CreateMonitoredProjectRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the existing `Metrics Scope` that will monitor this
       project.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateMonitoredProjectRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the existing `Metrics Scope` that will monitor this
       project.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateMonitoredProjectRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The resource name of the existing `Metrics Scope` that will monitor this
       project.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The resource name of the existing `Metrics Scope` that will monitor this
       project.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateMonitoredProjectRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the existing `Metrics Scope` that will monitor this
       project.
       Example:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasMonitoredProject

      public boolean hasMonitoredProject()
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMonitoredProject in interface CreateMonitoredProjectRequestOrBuilder
      Returns:
      Whether the monitoredProject field is set.
    • getMonitoredProject

      public MonitoredProject getMonitoredProject()
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMonitoredProject in interface CreateMonitoredProjectRequestOrBuilder
      Returns:
      The monitoredProject.
    • setMonitoredProject

      public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
    • setMonitoredProject

      public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeMonitoredProject

      public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearMonitoredProject

      public CreateMonitoredProjectRequest.Builder clearMonitoredProject()
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
    • getMonitoredProjectBuilder

      public MonitoredProject.Builder getMonitoredProjectBuilder()
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
    • getMonitoredProjectOrBuilder

      public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()
       Required. The initial `MonitoredProject` configuration.
       Specify only the `monitored_project.name` field. All other fields are
       ignored. The `monitored_project.name` must be in the format:
       `locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}`
       
      .google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMonitoredProjectOrBuilder in interface CreateMonitoredProjectRequestOrBuilder