Class Subject.Builder (0.40.0)

public static final class Subject.Builder extends GeneratedMessageV3.Builder<Subject.Builder> implements SubjectOrBuilder

A subject line of a notification.

Protobuf type google.cloud.advisorynotifications.v1.Subject

Implements

SubjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

build()

public Subject build()
Returns
Type Description
Subject

buildPartial()

public Subject buildPartial()
Returns
Type Description
Subject

clear()

public Subject.Builder clear()
Returns
Type Description
Subject.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Subject.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Subject.Builder
Overrides

clearText()

public Subject.Builder clearText()

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Subject.Builder

clone()

public Subject.Builder clone()
Returns
Type Description
Subject.Builder
Overrides

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
Type Description
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getText()

public Text getText()

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Text

The text.

getTextBuilder()

public Text.Builder getTextBuilder()

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
Text.Builder

getTextOrBuilder()

public TextOrBuilder getTextOrBuilder()

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
TextOrBuilder

hasText()

public boolean hasText()

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Returns
Type Description
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
Name Description
other Subject
Returns
Type Description
Subject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subject.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Subject.Builder
Overrides

mergeText(Text value)

public Subject.Builder mergeText(Text value)

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
value Text
Returns
Type Description
Subject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subject.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Subject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Subject.Builder
Overrides

setText(Text value)

public Subject.Builder setText(Text value)

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
value Text
Returns
Type Description
Subject.Builder

setText(Text.Builder builderForValue)

public Subject.Builder setText(Text.Builder builderForValue)

The text content.

.google.cloud.advisorynotifications.v1.Text text = 1;

Parameter
Name Description
builderForValue Text.Builder
Returns
Type Description
Subject.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subject.Builder
Overrides