public static final class Contact.Builder extends GeneratedMessageV3.Builder<Contact.Builder> implements ContactOrBuilder
Representa a single contact's email address
Protobuf type google.cloud.securitycenter.v1.Contact
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Contact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Contact buildPartial()
Returns
public Contact.Builder clear()
Returns
Overrides
public Contact.Builder clearEmail()
An email address e.g. "person123@company.com"
string email = 1;
Returns
public Contact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Contact.Builder clone()
Returns
Overrides
public Contact getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
An email address e.g. "person123@company.com"
string email = 1;
Returns
Type | Description |
String | The email.
|
public ByteString getEmailBytes()
An email address e.g. "person123@company.com"
string email = 1;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Contact.Builder mergeFrom(Contact other)
Parameter
Returns
public Contact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Contact.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Contact.Builder setEmail(String value)
An email address e.g. "person123@company.com"
string email = 1;
Parameter
Name | Description |
value | String
The email to set.
|
Returns
public Contact.Builder setEmailBytes(ByteString value)
An email address e.g. "person123@company.com"
string email = 1;
Parameter
Name | Description |
value | ByteString
The bytes for email to set.
|
Returns
public Contact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Contact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Contact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides