Class CreateDashboardRequest.Builder

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

public static final class CreateDashboardRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDashboardRequest.Builder> implements CreateDashboardRequestOrBuilder
 The `CreateDashboard` request.
 
Protobuf type google.monitoring.dashboard.v1.CreateDashboardRequest
  • 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<CreateDashboardRequest.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<CreateDashboardRequest.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<CreateDashboardRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The project on which to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
      
       The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDashboardRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project on which to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
      
       The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDashboardRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDashboardRequest.Builder setParent(String value)
       Required. The project on which to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
      
       The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateDashboardRequest.Builder clearParent()
       Required. The project on which to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
      
       The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDashboardRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project on which to execute the request. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]
      
       The `[PROJECT_ID_OR_NUMBER]` must match the dashboard resource name.
       
      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.
    • hasDashboard

      public boolean hasDashboard()
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDashboard in interface CreateDashboardRequestOrBuilder
      Returns:
      Whether the dashboard field is set.
    • getDashboard

      public Dashboard getDashboard()
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDashboard in interface CreateDashboardRequestOrBuilder
      Returns:
      The dashboard.
    • setDashboard

      public CreateDashboardRequest.Builder setDashboard(Dashboard value)
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDashboard

      public CreateDashboardRequest.Builder setDashboard(Dashboard.Builder builderForValue)
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDashboard

      public CreateDashboardRequest.Builder mergeDashboard(Dashboard value)
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDashboard

      public CreateDashboardRequest.Builder clearDashboard()
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDashboardBuilder

      public Dashboard.Builder getDashboardBuilder()
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDashboardOrBuilder

      public DashboardOrBuilder getDashboardOrBuilder()
       Required. The initial dashboard specification.
       
      .google.monitoring.dashboard.v1.Dashboard dashboard = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDashboardOrBuilder in interface CreateDashboardRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       If set, validate the request and preview the review, but do not actually
       save it.
       
      bool validate_only = 3;
      Specified by:
      getValidateOnly in interface CreateDashboardRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateDashboardRequest.Builder setValidateOnly(boolean value)
       If set, validate the request and preview the review, but do not actually
       save it.
       
      bool validate_only = 3;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateDashboardRequest.Builder clearValidateOnly()
       If set, validate the request and preview the review, but do not actually
       save it.
       
      bool validate_only = 3;
      Returns:
      This builder for chaining.