Interface PublishEventsRequestOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    PublishEventsRequest, PublishEventsRequest.Builder

    public interface PublishEventsRequestOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getChannel()
      The full name of the channel to publish to.
      com.google.protobuf.ByteString getChannelBytes()
      The full name of the channel to publish to.
      com.google.protobuf.Any getEvents​(int index)
      The CloudEvents v1.0 events to publish.
      int getEventsCount()
      The CloudEvents v1.0 events to publish.
      List<com.google.protobuf.Any> getEventsList()
      The CloudEvents v1.0 events to publish.
      com.google.protobuf.AnyOrBuilder getEventsOrBuilder​(int index)
      The CloudEvents v1.0 events to publish.
      List<? extends com.google.protobuf.AnyOrBuilder> getEventsOrBuilderList()
      The CloudEvents v1.0 events to publish.
      String getTextEvents​(int index)
      The text representation of events to publish.
      com.google.protobuf.ByteString getTextEventsBytes​(int index)
      The text representation of events to publish.
      int getTextEventsCount()
      The text representation of events to publish.
      List<String> getTextEventsList()
      The text representation of events to publish.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getChannel

        String getChannel()
         The full name of the channel to publish to. For example:
         `projects/{project}/locations/{location}/channels/{channel-id}`.
         
        string channel = 1;
        Returns:
        The channel.
      • getChannelBytes

        com.google.protobuf.ByteString getChannelBytes()
         The full name of the channel to publish to. For example:
         `projects/{project}/locations/{location}/channels/{channel-id}`.
         
        string channel = 1;
        Returns:
        The bytes for channel.
      • getEventsList

        List<com.google.protobuf.Any> getEventsList()
         The CloudEvents v1.0 events to publish. No other types are allowed.
         If this field is set, then the `text_events` fields must not be set.
         
        repeated .google.protobuf.Any events = 2;
      • getEvents

        com.google.protobuf.Any getEvents​(int index)
         The CloudEvents v1.0 events to publish. No other types are allowed.
         If this field is set, then the `text_events` fields must not be set.
         
        repeated .google.protobuf.Any events = 2;
      • getEventsCount

        int getEventsCount()
         The CloudEvents v1.0 events to publish. No other types are allowed.
         If this field is set, then the `text_events` fields must not be set.
         
        repeated .google.protobuf.Any events = 2;
      • getEventsOrBuilderList

        List<? extends com.google.protobuf.AnyOrBuilder> getEventsOrBuilderList()
         The CloudEvents v1.0 events to publish. No other types are allowed.
         If this field is set, then the `text_events` fields must not be set.
         
        repeated .google.protobuf.Any events = 2;
      • getEventsOrBuilder

        com.google.protobuf.AnyOrBuilder getEventsOrBuilder​(int index)
         The CloudEvents v1.0 events to publish. No other types are allowed.
         If this field is set, then the `text_events` fields must not be set.
         
        repeated .google.protobuf.Any events = 2;
      • getTextEventsList

        List<String> getTextEventsList()
         The text representation of events to publish.
         CloudEvent v1.0 in JSON format is the only allowed type. Refer to
         https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
         for specification.
         If this field is set, then the `events` fields must not be set.
         
        repeated string text_events = 3;
        Returns:
        A list containing the textEvents.
      • getTextEventsCount

        int getTextEventsCount()
         The text representation of events to publish.
         CloudEvent v1.0 in JSON format is the only allowed type. Refer to
         https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
         for specification.
         If this field is set, then the `events` fields must not be set.
         
        repeated string text_events = 3;
        Returns:
        The count of textEvents.
      • getTextEvents

        String getTextEvents​(int index)
         The text representation of events to publish.
         CloudEvent v1.0 in JSON format is the only allowed type. Refer to
         https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
         for specification.
         If this field is set, then the `events` fields must not be set.
         
        repeated string text_events = 3;
        Parameters:
        index - The index of the element to return.
        Returns:
        The textEvents at the given index.
      • getTextEventsBytes

        com.google.protobuf.ByteString getTextEventsBytes​(int index)
         The text representation of events to publish.
         CloudEvent v1.0 in JSON format is the only allowed type. Refer to
         https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
         for specification.
         If this field is set, then the `events` fields must not be set.
         
        repeated string text_events = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the textEvents at the given index.