public final class Trigger extends GeneratedMessageV3 implements TriggerOrBuilder
A representation of the trigger resource.
Protobuf type google.cloud.eventarc.v1.Trigger
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CHANNEL_FIELD_NUMBER
public static final int CHANNEL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CONDITIONS_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DESTINATION_FIELD_NUMBER
public static final int DESTINATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EVENT_DATA_CONTENT_TYPE_FIELD_NUMBER
public static final int EVENT_DATA_CONTENT_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
EVENT_FILTERS_FIELD_NUMBER
public static final int EVENT_FILTERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SATISFIES_PZS_FIELD_NUMBER
public static final int SATISFIES_PZS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TRANSPORT_FIELD_NUMBER
public static final int TRANSPORT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Trigger getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Trigger.Builder newBuilder()
newBuilder(Trigger prototype)
public static Trigger.Builder newBuilder(Trigger prototype)
Parameter |
Name |
Description |
prototype |
Trigger
|
public static Trigger parseDelimitedFrom(InputStream input)
public static Trigger parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Trigger parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Trigger parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Trigger parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Trigger parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Trigger parseFrom(CodedInputStream input)
public static Trigger parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Trigger parseFrom(InputStream input)
public static Trigger parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Trigger parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Trigger parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Trigger> parser()
Methods
containsConditions(String key)
public boolean containsConditions(String key)
Output only. The reason(s) why a trigger is in FAILED state.
map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
key |
String
|
containsLabels(String key)
public boolean containsLabels(String key)
Optional. User labels attached to the triggers that can be used to group
resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getChannel()
public String getChannel()
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format.
You must provide a channel to receive events from Eventarc SaaS partners.
string channel = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The channel.
|
getChannelBytes()
public ByteString getChannelBytes()
Optional. The name of the channel associated with the trigger in
projects/{project}/locations/{location}/channels/{channel}
format.
You must provide a channel to receive events from Eventarc SaaS partners.
string channel = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for channel.
|
getConditions() (deprecated)
public Map<String,StateCondition> getConditions()
getConditionsCount()
public int getConditionsCount()
Output only. The reason(s) why a trigger is in FAILED state.
map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
|
getConditionsMap()
public Map<String,StateCondition> getConditionsMap()
Output only. The reason(s) why a trigger is in FAILED state.
map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsOrDefault(String key, StateCondition defaultValue)
public StateCondition getConditionsOrDefault(String key, StateCondition defaultValue)
Output only. The reason(s) why a trigger is in FAILED state.
map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
getConditionsOrThrow(String key)
public StateCondition getConditionsOrThrow(String key)
Output only. The reason(s) why a trigger is in FAILED state.
map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
key |
String
|
getCreateTime()
public Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Trigger getDefaultInstanceForType()
getDestination()
public Destination getDestination()
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];
getDestinationOrBuilder()
public DestinationOrBuilder getDestinationOrBuilder()
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];
getEtag()
Output only. This checksum is computed by the server based on the value of
other fields, and might be sent only on create requests to ensure that the
client has an up-to-date value before proceeding.
string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The etag.
|
getEtagBytes()
public ByteString getEtagBytes()
Output only. This checksum is computed by the server based on the value of
other fields, and might be sent only on create requests to ensure that the
client has an up-to-date value before proceeding.
string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
ByteString |
The bytes for etag.
|
getEventDataContentType()
public String getEventDataContentType()
Optional. EventDataContentType specifies the type of payload in MIME
format that is expected from the CloudEvent data field. This is set to
application/json
if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The eventDataContentType.
|
getEventDataContentTypeBytes()
public ByteString getEventDataContentTypeBytes()
Optional. EventDataContentType specifies the type of payload in MIME
format that is expected from the CloudEvent data field. This is set to
application/json
if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for eventDataContentType.
|
getEventFilters(int index)
public EventFilter getEventFilters(int index)
Required. Unordered list. The list of filters that applies to event
attributes. Only events that match all the provided filters are sent to the
destination.
repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getEventFiltersCount()
public int getEventFiltersCount()
Required. Unordered list. The list of filters that applies to event
attributes. Only events that match all the provided filters are sent to the
destination.
repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
getEventFiltersList()
public List<EventFilter> getEventFiltersList()
Required. Unordered list. The list of filters that applies to event
attributes. Only events that match all the provided filters are sent to the
destination.
repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
getEventFiltersOrBuilder(int index)
public EventFilterOrBuilder getEventFiltersOrBuilder(int index)
Required. Unordered list. The list of filters that applies to event
attributes. Only events that match all the provided filters are sent to the
destination.
repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
|
getEventFiltersOrBuilderList()
public List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()
Required. Unordered list. The list of filters that applies to event
attributes. Only events that match all the provided filters are sent to the
destination.
repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
List<? extends com.google.cloud.eventarc.v1.EventFilterOrBuilder> |
|
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Optional. User labels attached to the triggers that can be used to group
resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. User labels attached to the triggers that can be used to group
resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. User labels attached to the triggers that can be used to group
resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. User labels attached to the triggers that can be used to group
resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getName()
Required. The resource name of the trigger. Must be unique within the
location of the project and must be in
projects/{project}/locations/{location}/triggers/{trigger}
format.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The resource name of the trigger. Must be unique within the
location of the project and must be in
projects/{project}/locations/{location}/triggers/{trigger}
format.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Trigger> getParserForType()
Overrides
getSatisfiesPzs()
public boolean getSatisfiesPzs()
Output only. Whether or not this Trigger satisfies the requirements of
physical zone separation
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
The satisfiesPzs.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getServiceAccount()
public String getServiceAccount()
Optional. The IAM service account email associated with the trigger. The
service account represents the identity of the trigger.
The iam.serviceAccounts.actAs
permission must be granted on the service
account to allow a principal to impersonate the service account. For more
information, see the
Roles and permissions page specific
to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The serviceAccount.
|
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
Optional. The IAM service account email associated with the trigger. The
service account represents the identity of the trigger.
The iam.serviceAccounts.actAs
permission must be granted on the service
account to allow a principal to impersonate the service account. For more
information, see the
Roles and permissions page specific
to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for serviceAccount.
|
getTransport()
public Transport getTransport()
Optional. To deliver messages, Eventarc might use other Google Cloud
products as a transport intermediary. This field contains a reference to
that transport intermediary. This information can be used for debugging
purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Transport |
The transport.
|
getTransportOrBuilder()
public TransportOrBuilder getTransportOrBuilder()
Optional. To deliver messages, Eventarc might use other Google Cloud
products as a transport intermediary. This field contains a reference to
that transport intermediary. This information can be used for debugging
purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
getUid()
Output only. Server-assigned unique identifier for the trigger. The value
is a UUID4 string and guaranteed to remain unchanged until the resource is
deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The uid.
|
getUidBytes()
public ByteString getUidBytes()
Output only. Server-assigned unique identifier for the trigger. The value
is a UUID4 string and guaranteed to remain unchanged until the resource is
deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
ByteString |
The bytes for uid.
|
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime()
public boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasDestination()
public boolean hasDestination()
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the destination field is set.
|
hasTransport()
public boolean hasTransport()
Optional. To deliver messages, Eventarc might use other Google Cloud
products as a transport intermediary. This field contains a reference to
that transport intermediary. This information can be used for debugging
purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the transport field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Trigger.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Trigger.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Trigger.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides