Class CreateNotificationConfigRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateNotificationConfigRequest.Builder>
com.google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest.Builder
All Implemented Interfaces:
CreateNotificationConfigRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateNotificationConfigRequest

public static final class CreateNotificationConfigRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateNotificationConfigRequest.Builder> implements CreateNotificationConfigRequestOrBuilder
 Request message for creating a notification config.
 
Protobuf type google.cloud.securitycenter.v1p1beta1.CreateNotificationConfigRequest
  • 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<CreateNotificationConfigRequest.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<CreateNotificationConfigRequest.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<CreateNotificationConfigRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public String getParent()
       Required. Resource name of the new notification config's parent. Its format is
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Resource name of the new notification config's parent. Its format is
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. Resource name of the new notification config's parent. Its format is
       "organizations/[organization_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 new notification config's parent. Its format is
       "organizations/[organization_id]".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateNotificationConfigRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the new notification config's parent. Its format is
       "organizations/[organization_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.
    • getConfigId

      public String getConfigId()
       Required. Unique identifier provided by the client within the parent scope.
       It must be between 1 and 128 characters, and contains alphanumeric
       characters, underscores or hyphens only.
       
      string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfigId in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      The configId.
    • getConfigIdBytes

      public com.google.protobuf.ByteString getConfigIdBytes()
       Required. Unique identifier provided by the client within the parent scope.
       It must be between 1 and 128 characters, and contains alphanumeric
       characters, underscores or hyphens only.
       
      string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfigIdBytes in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      The bytes for configId.
    • setConfigId

      public CreateNotificationConfigRequest.Builder setConfigId(String value)
       Required. Unique identifier provided by the client within the parent scope.
       It must be between 1 and 128 characters, and contains alphanumeric
       characters, underscores or hyphens only.
       
      string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The configId to set.
      Returns:
      This builder for chaining.
    • clearConfigId

       Required. Unique identifier provided by the client within the parent scope.
       It must be between 1 and 128 characters, and contains alphanumeric
       characters, underscores or hyphens only.
       
      string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setConfigIdBytes

      public CreateNotificationConfigRequest.Builder setConfigIdBytes(com.google.protobuf.ByteString value)
       Required. Unique identifier provided by the client within the parent scope.
       It must be between 1 and 128 characters, and contains alphanumeric
       characters, underscores or hyphens only.
       
      string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for configId to set.
      Returns:
      This builder for chaining.
    • hasNotificationConfig

      public boolean hasNotificationConfig()
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasNotificationConfig in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      Whether the notificationConfig field is set.
    • getNotificationConfig

      public NotificationConfig getNotificationConfig()
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotificationConfig in interface CreateNotificationConfigRequestOrBuilder
      Returns:
      The notificationConfig.
    • setNotificationConfig

      public CreateNotificationConfigRequest.Builder setNotificationConfig(NotificationConfig value)
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • setNotificationConfig

      public CreateNotificationConfigRequest.Builder setNotificationConfig(NotificationConfig.Builder builderForValue)
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeNotificationConfig

      public CreateNotificationConfigRequest.Builder mergeNotificationConfig(NotificationConfig value)
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearNotificationConfig

      public CreateNotificationConfigRequest.Builder clearNotificationConfig()
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getNotificationConfigBuilder

      public NotificationConfig.Builder getNotificationConfigBuilder()
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getNotificationConfigOrBuilder

      public NotificationConfigOrBuilder getNotificationConfigOrBuilder()
       Required. The notification config being created. The name and the service account
       will be ignored as they are both output only fields on this resource.
       
      .google.cloud.securitycenter.v1p1beta1.NotificationConfig notification_config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotificationConfigOrBuilder in interface CreateNotificationConfigRequestOrBuilder