public static final class Contact.Builder extends GeneratedMessageV3.Builder<Contact.Builder> implements ContactOrBuilder
Contact details of a point of contact.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Contact
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Contact.BuilderImplements
ContactOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllReachableTimes(Iterable<? extends TimePeriod> values)
public Contact.Builder addAllReachableTimes(Iterable<? extends TimePeriod> values)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod> |
Returns | |
---|---|
Type | Description |
Contact.Builder |
addReachableTimes(TimePeriod value)
public Contact.Builder addReachableTimes(TimePeriod value)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
TimePeriod |
Returns | |
---|---|
Type | Description |
Contact.Builder |
addReachableTimes(TimePeriod.Builder builderForValue)
public Contact.Builder addReachableTimes(TimePeriod.Builder builderForValue)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
TimePeriod.Builder |
Returns | |
---|---|
Type | Description |
Contact.Builder |
addReachableTimes(int index, TimePeriod value)
public Contact.Builder addReachableTimes(int index, TimePeriod value)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
TimePeriod |
Returns | |
---|---|
Type | Description |
Contact.Builder |
addReachableTimes(int index, TimePeriod.Builder builderForValue)
public Contact.Builder addReachableTimes(int index, TimePeriod.Builder builderForValue)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
TimePeriod.Builder |
Returns | |
---|---|
Type | Description |
Contact.Builder |
addReachableTimesBuilder()
public TimePeriod.Builder addReachableTimesBuilder()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TimePeriod.Builder |
addReachableTimesBuilder(int index)
public TimePeriod.Builder addReachableTimesBuilder(int index)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TimePeriod.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Contact.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Contact.Builder |
build()
public Contact build()
Returns | |
---|---|
Type | Description |
Contact |
buildPartial()
public Contact buildPartial()
Returns | |
---|---|
Type | Description |
Contact |
clear()
public Contact.Builder clear()
Returns | |
---|---|
Type | Description |
Contact.Builder |
clearEmail()
public Contact.Builder clearEmail()
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
clearFamilyName()
public Contact.Builder clearFamilyName()
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Contact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Contact.Builder |
clearGivenName()
public Contact.Builder clearGivenName()
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Contact.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Contact.Builder |
clearPhone()
public Contact.Builder clearPhone()
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
clearReachableTimes()
public Contact.Builder clearReachableTimes()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Contact.Builder |
clearTimeZone()
public Contact.Builder clearTimeZone()
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Contact.Builder |
clone()
public Contact.Builder clone()
Returns | |
---|---|
Type | Description |
Contact.Builder |
getDefaultInstanceForType()
public Contact getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Contact |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEmail()
public String getEmail()
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The email. |
getEmailBytes()
public ByteString getEmailBytes()
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for email. |
getFamilyName()
public String getFamilyName()
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The familyName. |
getFamilyNameBytes()
public ByteString getFamilyNameBytes()
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for familyName. |
getGivenName()
public String getGivenName()
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The givenName. |
getGivenNameBytes()
public ByteString getGivenNameBytes()
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for givenName. |
getPhone()
public String getPhone()
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The phone. |
getPhoneBytes()
public ByteString getPhoneBytes()
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for phone. |
getReachableTimes(int index)
public TimePeriod getReachableTimes(int index)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TimePeriod |
getReachableTimesBuilder(int index)
public TimePeriod.Builder getReachableTimesBuilder(int index)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TimePeriod.Builder |
getReachableTimesBuilderList()
public List<TimePeriod.Builder> getReachableTimesBuilderList()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getReachableTimesCount()
public int getReachableTimesCount()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getReachableTimesList()
public List<TimePeriod> getReachableTimesList()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<TimePeriod> |
getReachableTimesOrBuilder(int index)
public TimePeriodOrBuilder getReachableTimesOrBuilder(int index)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TimePeriodOrBuilder |
getReachableTimesOrBuilderList()
public List<? extends TimePeriodOrBuilder> getReachableTimesOrBuilderList()
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> |
getTimeZone()
public TimeZone getTimeZone()
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
com.google.type.TimeZone |
The timeZone. |
getTimeZoneBuilder()
public TimeZone.Builder getTimeZoneBuilder()
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
com.google.type.TimeZone.Builder |
getTimeZoneOrBuilder()
public TimeZoneOrBuilder getTimeZoneOrBuilder()
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
com.google.type.TimeZoneOrBuilder |
hasTimeZone()
public boolean hasTimeZone()
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the timeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Contact other)
public Contact.Builder mergeFrom(Contact other)
Parameter | |
---|---|
Name | Description |
other |
Contact |
Returns | |
---|---|
Type | Description |
Contact.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Contact.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Contact.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Contact.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Contact.Builder |
mergeTimeZone(TimeZone value)
public Contact.Builder mergeTimeZone(TimeZone value)
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
com.google.type.TimeZone |
Returns | |
---|---|
Type | Description |
Contact.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Contact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Contact.Builder |
removeReachableTimes(int index)
public Contact.Builder removeReachableTimes(int index)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setEmail(String value)
public Contact.Builder setEmail(String value)
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The email to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setEmailBytes(ByteString value)
public Contact.Builder setEmailBytes(ByteString value)
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for email to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setFamilyName(String value)
public Contact.Builder setFamilyName(String value)
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The familyName to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setFamilyNameBytes(ByteString value)
public Contact.Builder setFamilyNameBytes(ByteString value)
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for familyName to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Contact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setGivenName(String value)
public Contact.Builder setGivenName(String value)
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The givenName to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setGivenNameBytes(ByteString value)
public Contact.Builder setGivenNameBytes(ByteString value)
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for givenName to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setPhone(String value)
public Contact.Builder setPhone(String value)
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The phone to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setPhoneBytes(ByteString value)
public Contact.Builder setPhoneBytes(ByteString value)
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for phone to set. |
Returns | |
---|---|
Type | Description |
Contact.Builder |
This builder for chaining. |
setReachableTimes(int index, TimePeriod value)
public Contact.Builder setReachableTimes(int index, TimePeriod value)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
TimePeriod |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setReachableTimes(int index, TimePeriod.Builder builderForValue)
public Contact.Builder setReachableTimes(int index, TimePeriod.Builder builderForValue)
Optional. The time periods when the contact is reachable. If this field is empty, the contact is reachable at all times.
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
TimePeriod.Builder |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Contact.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setTimeZone(TimeZone value)
public Contact.Builder setTimeZone(TimeZone value)
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
com.google.type.TimeZone |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setTimeZone(TimeZone.Builder builderForValue)
public Contact.Builder setTimeZone(TimeZone.Builder builderForValue)
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
com.google.type.TimeZone.Builder |
Returns | |
---|---|
Type | Description |
Contact.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Contact.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Contact.Builder |