public static final class Notification.Builder extends GeneratedMessageV3.Builder<Notification.Builder> implements NotificationOrBuilder
A notification object for notifying customers about security and privacy issues.
Protobuf type google.cloud.advisorynotifications.v1.Notification
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Notification.BuilderImplements
NotificationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllMessages(Iterable<? extends Message> values)
public Notification.Builder addAllMessages(Iterable<? extends Message> values)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
values | Iterable<? extends com.google.cloud.advisorynotifications.v1.Message> |
Type | Description |
Notification.Builder |
addMessages(Message value)
public Notification.Builder addMessages(Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
value | Message |
Type | Description |
Notification.Builder |
addMessages(Message.Builder builderForValue)
public Notification.Builder addMessages(Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
builderForValue | Message.Builder |
Type | Description |
Notification.Builder |
addMessages(int index, Message value)
public Notification.Builder addMessages(int index, Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
value | Message |
Type | Description |
Notification.Builder |
addMessages(int index, Message.Builder builderForValue)
public Notification.Builder addMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
builderForValue | Message.Builder |
Type | Description |
Notification.Builder |
addMessagesBuilder()
public Message.Builder addMessagesBuilder()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
Message.Builder |
addMessagesBuilder(int index)
public Message.Builder addMessagesBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
Type | Description |
Message.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Notification.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Notification.Builder |
build()
public Notification build()
Type | Description |
Notification |
buildPartial()
public Notification buildPartial()
Type | Description |
Notification |
clear()
public Notification.Builder clear()
Type | Description |
Notification.Builder |
clearCreateTime()
public Notification.Builder clearCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Notification.Builder |
clearField(Descriptors.FieldDescriptor field)
public Notification.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Notification.Builder |
clearMessages()
public Notification.Builder clearMessages()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
Notification.Builder |
clearName()
public Notification.Builder clearName()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Type | Description |
Notification.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Notification.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Notification.Builder |
clearSubject()
public Notification.Builder clearSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Type | Description |
Notification.Builder |
clone()
public Notification.Builder clone()
Type | Description |
Notification.Builder |
getCreateTime()
public Timestamp getCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Notification getDefaultInstanceForType()
Type | Description |
Notification |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMessages(int index)
public Message getMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
Type | Description |
Message |
getMessagesBuilder(int index)
public Message.Builder getMessagesBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
Type | Description |
Message.Builder |
getMessagesBuilderList()
public List<Message.Builder> getMessagesBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
List<Builder> |
getMessagesCount()
public int getMessagesCount()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
int |
getMessagesList()
public List<Message> getMessagesList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
List<Message> |
getMessagesOrBuilder(int index)
public MessageOrBuilder getMessagesOrBuilder(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
Type | Description |
MessageOrBuilder |
getMessagesOrBuilderList()
public List<? extends MessageOrBuilder> getMessagesOrBuilderList()
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Type | Description |
List<? extends com.google.cloud.advisorynotifications.v1.MessageOrBuilder> |
getName()
public String getName()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getSubject()
public Subject getSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Type | Description |
Subject | The subject. |
getSubjectBuilder()
public Subject.Builder getSubjectBuilder()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Type | Description |
Subject.Builder |
getSubjectOrBuilder()
public SubjectOrBuilder getSubjectOrBuilder()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Type | Description |
SubjectOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasSubject()
public boolean hasSubject()
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Type | Description |
boolean | Whether the subject field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Notification.Builder mergeCreateTime(Timestamp value)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Notification.Builder |
mergeFrom(Notification other)
public Notification.Builder mergeFrom(Notification other)
Name | Description |
other | Notification |
Type | Description |
Notification.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Notification.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Notification.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Notification.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Notification.Builder |
mergeSubject(Subject value)
public Notification.Builder mergeSubject(Subject value)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Name | Description |
value | Subject |
Type | Description |
Notification.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Notification.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Notification.Builder |
removeMessages(int index)
public Notification.Builder removeMessages(int index)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
Type | Description |
Notification.Builder |
setCreateTime(Timestamp value)
public Notification.Builder setCreateTime(Timestamp value)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Notification.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Notification.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Time the notification was created.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Notification.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Notification.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Notification.Builder |
setMessages(int index, Message value)
public Notification.Builder setMessages(int index, Message value)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
value | Message |
Type | Description |
Notification.Builder |
setMessages(int index, Message.Builder builderForValue)
public Notification.Builder setMessages(int index, Message.Builder builderForValue)
A list of messages in the notification.
repeated .google.cloud.advisorynotifications.v1.Message messages = 3;
Name | Description |
index | int |
builderForValue | Message.Builder |
Type | Description |
Notification.Builder |
setName(String value)
public Notification.Builder setName(String value)
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Notification.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Notification.Builder setNameBytes(ByteString value)
The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification}.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Notification.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Notification.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Notification.Builder |
setSubject(Subject value)
public Notification.Builder setSubject(Subject value)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Name | Description |
value | Subject |
Type | Description |
Notification.Builder |
setSubject(Subject.Builder builderForValue)
public Notification.Builder setSubject(Subject.Builder builderForValue)
The subject line of the notification.
.google.cloud.advisorynotifications.v1.Subject subject = 2;
Name | Description |
builderForValue | Subject.Builder |
Type | Description |
Notification.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Notification.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Notification.Builder |