Class Subject.Builder (0.0.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

build()

public Subject build()
Returns
TypeDescription
Subject

buildPartial()

public Subject buildPartial()
Returns
TypeDescription
Subject

clear()

public Subject.Builder clear()
Returns
TypeDescription
Subject.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clearText()

public Subject.Builder clearText()

The text content.

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

Returns
TypeDescription
Subject.Builder

clone()

public Subject.Builder clone()
Returns
TypeDescription
Subject.Builder
Overrides

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
TypeDescription
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getText()

public Text getText()

The text content.

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

Returns
TypeDescription
Text

The text.

getTextBuilder()

public Text.Builder getTextBuilder()

The text content.

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

Returns
TypeDescription
Text.Builder

getTextOrBuilder()

public TextOrBuilder getTextOrBuilder()

The text content.

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

Returns
TypeDescription
TextOrBuilder

hasText()

public boolean hasText()

The text content.

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

Returns
TypeDescription
boolean

Whether the text field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
NameDescription
otherSubject
Returns
TypeDescription
Subject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Subject.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Subject.Builder
Overrides

mergeText(Text value)

public Subject.Builder mergeText(Text value)

The text content.

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

Parameter
NameDescription
valueText
Returns
TypeDescription
Subject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

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

public Subject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

setText(Text value)

public Subject.Builder setText(Text value)

The text content.

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

Parameter
NameDescription
valueText
Returns
TypeDescription
Subject.Builder

setText(Text.Builder builderForValue)

public Subject.Builder setText(Text.Builder builderForValue)

The text content.

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

Parameter
NameDescription
builderForValueText.Builder
Returns
TypeDescription
Subject.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides