Class SendTestMessageRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SendTestMessageRequest.Builder>
com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder
All Implemented Interfaces:
SendTestMessageRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SendTestMessageRequest

public static final class SendTestMessageRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SendTestMessageRequest.Builder> implements SendTestMessageRequestOrBuilder
 Request message for the SendTestMessage method.
 
Protobuf type google.cloud.essentialcontacts.v1.SendTestMessageRequest
  • 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<SendTestMessageRequest.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<SendTestMessageRequest.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<SendTestMessageRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SendTestMessageRequest.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<SendTestMessageRequest.Builder>
      Throws:
      IOException
    • getContactsList

      public com.google.protobuf.ProtocolStringList getContactsList()
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContactsList in interface SendTestMessageRequestOrBuilder
      Returns:
      A list containing the contacts.
    • getContactsCount

      public int getContactsCount()
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContactsCount in interface SendTestMessageRequestOrBuilder
      Returns:
      The count of contacts.
    • getContacts

      public String getContacts(int index)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContacts in interface SendTestMessageRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The contacts at the given index.
    • getContactsBytes

      public com.google.protobuf.ByteString getContactsBytes(int index)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getContactsBytes in interface SendTestMessageRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the contacts at the given index.
    • setContacts

      public SendTestMessageRequest.Builder setContacts(int index, String value)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The contacts to set.
      Returns:
      This builder for chaining.
    • addContacts

      public SendTestMessageRequest.Builder addContacts(String value)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The contacts to add.
      Returns:
      This builder for chaining.
    • addAllContacts

      public SendTestMessageRequest.Builder addAllContacts(Iterable<String> values)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The contacts to add.
      Returns:
      This builder for chaining.
    • clearContacts

      public SendTestMessageRequest.Builder clearContacts()
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addContactsBytes

      public SendTestMessageRequest.Builder addContactsBytes(com.google.protobuf.ByteString value)
       Required. The list of names of the contacts to send a test message to.
       Format: organizations/{organization_id}/contacts/{contact_id},
       folders/{folder_id}/contacts/{contact_id} or
       projects/{project_id}/contacts/{contact_id}
       
      repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the contacts to add.
      Returns:
      This builder for chaining.
    • getResource

      public String getResource()
       Required. The name of the resource to send the test message for. All
       contacts must either be set directly on this resource or inherited from
       another resource that is an ancestor of this one. Format:
       organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResource in interface SendTestMessageRequestOrBuilder
      Returns:
      The resource.
    • getResourceBytes

      public com.google.protobuf.ByteString getResourceBytes()
       Required. The name of the resource to send the test message for. All
       contacts must either be set directly on this resource or inherited from
       another resource that is an ancestor of this one. Format:
       organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceBytes in interface SendTestMessageRequestOrBuilder
      Returns:
      The bytes for resource.
    • setResource

      public SendTestMessageRequest.Builder setResource(String value)
       Required. The name of the resource to send the test message for. All
       contacts must either be set directly on this resource or inherited from
       another resource that is an ancestor of this one. Format:
       organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The resource to set.
      Returns:
      This builder for chaining.
    • clearResource

      public SendTestMessageRequest.Builder clearResource()
       Required. The name of the resource to send the test message for. All
       contacts must either be set directly on this resource or inherited from
       another resource that is an ancestor of this one. Format:
       organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceBytes

      public SendTestMessageRequest.Builder setResourceBytes(com.google.protobuf.ByteString value)
       Required. The name of the resource to send the test message for. All
       contacts must either be set directly on this resource or inherited from
       another resource that is an ancestor of this one. Format:
       organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for resource to set.
      Returns:
      This builder for chaining.
    • getNotificationCategoryValue

      public int getNotificationCategoryValue()
       Required. The notification category to send the test message for. All
       contacts must be subscribed to this category.
       
      .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotificationCategoryValue in interface SendTestMessageRequestOrBuilder
      Returns:
      The enum numeric value on the wire for notificationCategory.
    • setNotificationCategoryValue

      public SendTestMessageRequest.Builder setNotificationCategoryValue(int value)
       Required. The notification category to send the test message for. All
       contacts must be subscribed to this category.
       
      .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for notificationCategory to set.
      Returns:
      This builder for chaining.
    • getNotificationCategory

      public NotificationCategory getNotificationCategory()
       Required. The notification category to send the test message for. All
       contacts must be subscribed to this category.
       
      .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNotificationCategory in interface SendTestMessageRequestOrBuilder
      Returns:
      The notificationCategory.
    • setNotificationCategory

      public SendTestMessageRequest.Builder setNotificationCategory(NotificationCategory value)
       Required. The notification category to send the test message for. All
       contacts must be subscribed to this category.
       
      .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The notificationCategory to set.
      Returns:
      This builder for chaining.
    • clearNotificationCategory

      public SendTestMessageRequest.Builder clearNotificationCategory()
       Required. The notification category to send the test message for. All
       contacts must be subscribed to this category.
       
      .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.