Class ContactDetails.Builder (2.44.0)

public static final class ContactDetails.Builder extends GeneratedMessageV3.Builder<ContactDetails.Builder> implements ContactDetailsOrBuilder

Details about specific contacts

Protobuf type google.cloud.securitycenter.v1.ContactDetails

Static Methods

getDescriptor()

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

Methods

addAllContacts(Iterable<? extends Contact> values)

public ContactDetails.Builder addAllContacts(Iterable<? extends Contact> values)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.securitycenter.v1.Contact>
Returns
TypeDescription
ContactDetails.Builder

addContacts(Contact value)

public ContactDetails.Builder addContacts(Contact value)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
valueContact
Returns
TypeDescription
ContactDetails.Builder

addContacts(Contact.Builder builderForValue)

public ContactDetails.Builder addContacts(Contact.Builder builderForValue)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
builderForValueContact.Builder
Returns
TypeDescription
ContactDetails.Builder

addContacts(int index, Contact value)

public ContactDetails.Builder addContacts(int index, Contact value)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
valueContact
Returns
TypeDescription
ContactDetails.Builder

addContacts(int index, Contact.Builder builderForValue)

public ContactDetails.Builder addContacts(int index, Contact.Builder builderForValue)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns
TypeDescription
ContactDetails.Builder

addContactsBuilder()

public Contact.Builder addContactsBuilder()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
Contact.Builder

addContactsBuilder(int index)

public Contact.Builder addContactsBuilder(int index)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactDetails build()
Returns
TypeDescription
ContactDetails

buildPartial()

public ContactDetails buildPartial()
Returns
TypeDescription
ContactDetails

clear()

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

clearContacts()

public ContactDetails.Builder clearContacts()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
ContactDetails.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContacts(int index)

public Contact getContacts(int index)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact

getContactsBuilder(int index)

public Contact.Builder getContactsBuilder(int index)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

getContactsBuilderList()

public List<Contact.Builder> getContactsBuilderList()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
List<Builder>

getContactsCount()

public int getContactsCount()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
int

getContactsList()

public List<Contact> getContactsList()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
List<Contact>

getContactsOrBuilder(int index)

public ContactOrBuilder getContactsOrBuilder(int index)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContactOrBuilder

getContactsOrBuilderList()

public List<? extends ContactOrBuilder> getContactsOrBuilderList()

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Returns
TypeDescription
List<? extends com.google.cloud.securitycenter.v1.ContactOrBuilder>

getDefaultInstanceForType()

public ContactDetails getDefaultInstanceForType()
Returns
TypeDescription
ContactDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContactDetails other)

public ContactDetails.Builder mergeFrom(ContactDetails other)
Parameter
NameDescription
otherContactDetails
Returns
TypeDescription
ContactDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContacts(int index)

public ContactDetails.Builder removeContacts(int index)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContactDetails.Builder

setContacts(int index, Contact value)

public ContactDetails.Builder setContacts(int index, Contact value)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
valueContact
Returns
TypeDescription
ContactDetails.Builder

setContacts(int index, Contact.Builder builderForValue)

public ContactDetails.Builder setContacts(int index, Contact.Builder builderForValue)

A list of contacts

repeated .google.cloud.securitycenter.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns
TypeDescription
ContactDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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