Class ContactDetails.Builder (2.54.0)

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

Details about specific contacts

Protobuf type google.cloud.securitycenter.v2.ContactDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllContacts(Iterable<? extends Contact> values)

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

A list of contacts

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.securitycenter.v2.Contact>
Returns
Type Description
ContactDetails.Builder

addContacts(Contact value)

public ContactDetails.Builder addContacts(Contact value)

A list of contacts

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

Parameter
Name Description
value Contact
Returns
Type Description
ContactDetails.Builder

addContacts(Contact.Builder builderForValue)

public ContactDetails.Builder addContacts(Contact.Builder builderForValue)

A list of contacts

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

Parameter
Name Description
builderForValue Contact.Builder
Returns
Type Description
ContactDetails.Builder

addContacts(int index, Contact value)

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

A list of contacts

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

Parameters
Name Description
index int
value Contact
Returns
Type Description
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.v2.Contact contacts = 1;

Parameters
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ContactDetails.Builder

addContactsBuilder()

public Contact.Builder addContactsBuilder()

A list of contacts

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

Returns
Type Description
Contact.Builder

addContactsBuilder(int index)

public Contact.Builder addContactsBuilder(int index)

A list of contacts

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

Parameter
Name Description
index int
Returns
Type Description
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContactDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContactDetails.Builder
Overrides

build()

public ContactDetails build()
Returns
Type Description
ContactDetails

buildPartial()

public ContactDetails buildPartial()
Returns
Type Description
ContactDetails

clear()

public ContactDetails.Builder clear()
Returns
Type Description
ContactDetails.Builder
Overrides

clearContacts()

public ContactDetails.Builder clearContacts()

A list of contacts

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

Returns
Type Description
ContactDetails.Builder

clearField(Descriptors.FieldDescriptor field)

public ContactDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContactDetails.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContactDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContactDetails.Builder
Overrides

clone()

public ContactDetails.Builder clone()
Returns
Type Description
ContactDetails.Builder
Overrides

getContacts(int index)

public Contact getContacts(int index)

A list of contacts

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

Parameter
Name Description
index int
Returns
Type Description
Contact

getContactsBuilder(int index)

public Contact.Builder getContactsBuilder(int index)

A list of contacts

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

Parameter
Name Description
index int
Returns
Type Description
Contact.Builder

getContactsBuilderList()

public List<Contact.Builder> getContactsBuilderList()

A list of contacts

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

Returns
Type Description
List<Builder>

getContactsCount()

public int getContactsCount()

A list of contacts

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

Returns
Type Description
int

getContactsList()

public List<Contact> getContactsList()

A list of contacts

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

Returns
Type Description
List<Contact>

getContactsOrBuilder(int index)

public ContactOrBuilder getContactsOrBuilder(int index)

A list of contacts

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

Parameter
Name Description
index int
Returns
Type Description
ContactOrBuilder

getContactsOrBuilderList()

public List<? extends ContactOrBuilder> getContactsOrBuilderList()

A list of contacts

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

Returns
Type Description
List<? extends com.google.cloud.securitycenter.v2.ContactOrBuilder>

getDefaultInstanceForType()

public ContactDetails getDefaultInstanceForType()
Returns
Type Description
ContactDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContactDetails other)

public ContactDetails.Builder mergeFrom(ContactDetails other)
Parameter
Name Description
other ContactDetails
Returns
Type Description
ContactDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContactDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContactDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContactDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContactDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContactDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContactDetails.Builder
Overrides

removeContacts(int index)

public ContactDetails.Builder removeContacts(int index)

A list of contacts

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

Parameter
Name Description
index int
Returns
Type Description
ContactDetails.Builder

setContacts(int index, Contact value)

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

A list of contacts

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

Parameters
Name Description
index int
value Contact
Returns
Type Description
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.v2.Contact contacts = 1;

Parameters
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ContactDetails.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContactDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContactDetails.Builder
Overrides

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

public ContactDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContactDetails.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContactDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContactDetails.Builder
Overrides