Class CreateServiceLevelObjectiveRequest.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<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.GeneratedMessageV3.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

        public CreateServiceLevelObjectiveRequest 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateServiceLevelObjectiveRequest.Builder>
      • 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

        public CreateServiceLevelObjectiveRequest.Builder setParent​(String 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 parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateServiceLevelObjectiveRequest.Builder 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-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-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-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-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-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];