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()
Methods
public Contact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Contact buildPartial()
public Contact.Builder clear()
Overrides
public Contact.Builder clearEmail()
An email address e.g. "person123@company.com"
string email = 1;
public Contact.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Contact.Builder clone()
Overrides
public Contact getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for email.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Contact.Builder mergeFrom(Contact other)
Parameter |
---|
Name | Description |
other | Contact
|
public Contact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Contact.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
public Contact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Contact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Contact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides