Class SendTestMessageRequest.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<SendTestMessageRequest.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public SendTestMessageRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • clearField

        public SendTestMessageRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • clearOneof

        public SendTestMessageRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • setRepeatedField

        public SendTestMessageRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • addRepeatedField

        public SendTestMessageRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • isInitialized

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

        public final SendTestMessageRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>
      • mergeUnknownFields

        public final SendTestMessageRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SendTestMessageRequest.Builder>