Class CreateServiceLevelObjectiveRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateServiceLevelObjectiveRequest.Builder>
com.google.monitoring.v3.CreateServiceLevelObjectiveRequest.Builder
All Implemented Interfaces:
CreateServiceLevelObjectiveRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateServiceLevelObjectiveRequest

public static final class CreateServiceLevelObjectiveRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateServiceLevelObjectiveRequest.Builder> implements CreateServiceLevelObjectiveRequestOrBuilder
 The `CreateServiceLevelObjective` request.
 
Protobuf type google.monitoring.v3.CreateServiceLevelObjectiveRequest
  • 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<CreateServiceLevelObjectiveRequest.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<CreateServiceLevelObjectiveRequest.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<CreateServiceLevelObjectiveRequest.Builder>
    • getDefaultInstanceForType

      public CreateServiceLevelObjectiveRequest 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 CreateServiceLevelObjectiveRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getParent()
       Required. Resource name of the parent `Service`. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Resource name of the parent `Service`. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. Resource name of the parent `Service`. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      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. Resource name of the parent `Service`. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateServiceLevelObjectiveRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the parent `Service`. The format is:
      
       projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]
       
      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.
    • getServiceLevelObjectiveId

      public String getServiceLevelObjectiveId()
       Optional. The ServiceLevelObjective id to use for this
       ServiceLevelObjective. If omitted, an id will be generated instead. Must
       match the pattern `^[a-zA-Z0-9-_:.]+$`
       
      string service_level_objective_id = 3;
      Specified by:
      getServiceLevelObjectiveId in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      The serviceLevelObjectiveId.
    • getServiceLevelObjectiveIdBytes

      public com.google.protobuf.ByteString getServiceLevelObjectiveIdBytes()
       Optional. The ServiceLevelObjective id to use for this
       ServiceLevelObjective. If omitted, an id will be generated instead. Must
       match the pattern `^[a-zA-Z0-9-_:.]+$`
       
      string service_level_objective_id = 3;
      Specified by:
      getServiceLevelObjectiveIdBytes in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      The bytes for serviceLevelObjectiveId.
    • setServiceLevelObjectiveId

      public CreateServiceLevelObjectiveRequest.Builder setServiceLevelObjectiveId(String value)
       Optional. The ServiceLevelObjective id to use for this
       ServiceLevelObjective. If omitted, an id will be generated instead. Must
       match the pattern `^[a-zA-Z0-9-_:.]+$`
       
      string service_level_objective_id = 3;
      Parameters:
      value - The serviceLevelObjectiveId to set.
      Returns:
      This builder for chaining.
    • clearServiceLevelObjectiveId

      public CreateServiceLevelObjectiveRequest.Builder clearServiceLevelObjectiveId()
       Optional. The ServiceLevelObjective id to use for this
       ServiceLevelObjective. If omitted, an id will be generated instead. Must
       match the pattern `^[a-zA-Z0-9-_:.]+$`
       
      string service_level_objective_id = 3;
      Returns:
      This builder for chaining.
    • setServiceLevelObjectiveIdBytes

      public CreateServiceLevelObjectiveRequest.Builder setServiceLevelObjectiveIdBytes(com.google.protobuf.ByteString value)
       Optional. The ServiceLevelObjective id to use for this
       ServiceLevelObjective. If omitted, an id will be generated instead. Must
       match the pattern `^[a-zA-Z0-9-_:.]+$`
       
      string service_level_objective_id = 3;
      Parameters:
      value - The bytes for serviceLevelObjectiveId to set.
      Returns:
      This builder for chaining.
    • hasServiceLevelObjective

      public boolean hasServiceLevelObjective()
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasServiceLevelObjective in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      Whether the serviceLevelObjective field is set.
    • getServiceLevelObjective

      public ServiceLevelObjective getServiceLevelObjective()
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceLevelObjective in interface CreateServiceLevelObjectiveRequestOrBuilder
      Returns:
      The serviceLevelObjective.
    • setServiceLevelObjective

      public CreateServiceLevelObjectiveRequest.Builder setServiceLevelObjective(ServiceLevelObjective value)
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
    • setServiceLevelObjective

      public CreateServiceLevelObjectiveRequest.Builder setServiceLevelObjective(ServiceLevelObjective.Builder builderForValue)
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeServiceLevelObjective

      public CreateServiceLevelObjectiveRequest.Builder mergeServiceLevelObjective(ServiceLevelObjective value)
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearServiceLevelObjective

      public CreateServiceLevelObjectiveRequest.Builder clearServiceLevelObjective()
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
    • getServiceLevelObjectiveBuilder

      public ServiceLevelObjective.Builder getServiceLevelObjectiveBuilder()
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
    • getServiceLevelObjectiveOrBuilder

      public ServiceLevelObjectiveOrBuilder getServiceLevelObjectiveOrBuilder()
       Required. The `ServiceLevelObjective` to create.
       The provided `name` will be respected if no `ServiceLevelObjective` exists
       with this name.
       
      .google.monitoring.v3.ServiceLevelObjective service_level_objective = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceLevelObjectiveOrBuilder in interface CreateServiceLevelObjectiveRequestOrBuilder