Class Product.Builder (0.2.0)

public static final class Product.Builder extends GeneratedMessageV3.Builder<Product.Builder> implements ProductOrBuilder

Represents the Google Cloud product impacted by the event.

Protobuf type google.cloud.servicehealth.v1.Product

Implements

ProductOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Product build()
Returns
TypeDescription
Product

buildPartial()

public Product buildPartial()
Returns
TypeDescription
Product

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProductName()

public Product.Builder clearProductName()

Google Cloud product impacted by the event. Example: "Google Cloud SQL"

string product_name = 1;

Returns
TypeDescription
Product.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Product getDefaultInstanceForType()
Returns
TypeDescription
Product

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProductName()

public String getProductName()

Google Cloud product impacted by the event. Example: "Google Cloud SQL"

string product_name = 1;

Returns
TypeDescription
String

The productName.

getProductNameBytes()

public ByteString getProductNameBytes()

Google Cloud product impacted by the event. Example: "Google Cloud SQL"

string product_name = 1;

Returns
TypeDescription
ByteString

The bytes for productName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Product other)

public Product.Builder mergeFrom(Product other)
Parameter
NameDescription
otherProduct
Returns
TypeDescription
Product.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProductName(String value)

public Product.Builder setProductName(String value)

Google Cloud product impacted by the event. Example: "Google Cloud SQL"

string product_name = 1;

Parameter
NameDescription
valueString

The productName to set.

Returns
TypeDescription
Product.Builder

This builder for chaining.

setProductNameBytes(ByteString value)

public Product.Builder setProductNameBytes(ByteString value)

Google Cloud product impacted by the event. Example: "Google Cloud SQL"

string product_name = 1;

Parameter
NameDescription
valueByteString

The bytes for productName to set.

Returns
TypeDescription
Product.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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