Class Contact.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder
- All Implemented Interfaces:
ContactOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Contact
public static final class Contact.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
implements ContactOrBuilder
Contact details of a point of contact.Protobuf type
google.cloud.gdchardwaremanagement.v1alpha.Contact-
Method Summary
Modifier and TypeMethodDescriptionaddAllReachableTimes(Iterable<? extends TimePeriod> values) Optional.addReachableTimes(int index, TimePeriod value) Optional.addReachableTimes(int index, TimePeriod.Builder builderForValue) Optional.addReachableTimes(TimePeriod value) Optional.addReachableTimes(TimePeriod.Builder builderForValue) Optional.Optional.addReachableTimesBuilder(int index) Optional.build()clear()Required.Optional.Required.Required.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail()Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.getPhone()Required.com.google.protobuf.ByteStringRequired.getReachableTimes(int index) Optional.getReachableTimesBuilder(int index) Optional.Optional.intOptional.Optional.getReachableTimesOrBuilder(int index) Optional.List<? extends TimePeriodOrBuilder>Optional.Optional.Optional.Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTimeZone(TimeZone value) Optional.removeReachableTimes(int index) Optional.Required.setEmailBytes(com.google.protobuf.ByteString value) Required.setFamilyName(String value) Optional.setFamilyNameBytes(com.google.protobuf.ByteString value) Optional.setGivenName(String value) Required.setGivenNameBytes(com.google.protobuf.ByteString value) Required.Required.setPhoneBytes(com.google.protobuf.ByteString value) Required.setReachableTimes(int index, TimePeriod value) Optional.setReachableTimes(int index, TimePeriod.Builder builderForValue) Optional.setTimeZone(TimeZone value) Optional.setTimeZone(TimeZone.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Contact.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Contact.Builder>
-
mergeFrom
public Contact.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Contact.Builder>- Throws:
IOException
-
getGivenName
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getGivenNamein interfaceContactOrBuilder- Returns:
- The givenName.
-
getGivenNameBytes
public com.google.protobuf.ByteString getGivenNameBytes()Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getGivenNameBytesin interfaceContactOrBuilder- Returns:
- The bytes for givenName.
-
setGivenName
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The givenName to set.- Returns:
- This builder for chaining.
-
clearGivenName
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setGivenNameBytes
Required. Given name of the contact.
string given_name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for givenName to set.- Returns:
- This builder for chaining.
-
getFamilyName
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFamilyNamein interfaceContactOrBuilder- Returns:
- The familyName.
-
getFamilyNameBytes
public com.google.protobuf.ByteString getFamilyNameBytes()Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFamilyNameBytesin interfaceContactOrBuilder- Returns:
- The bytes for familyName.
-
setFamilyName
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The familyName to set.- Returns:
- This builder for chaining.
-
clearFamilyName
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFamilyNameBytes
Optional. Family name of the contact.
string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for familyName to set.- Returns:
- This builder for chaining.
-
getEmail
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEmailin interfaceContactOrBuilder- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes()Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEmailBytesin interfaceContactOrBuilder- Returns:
- The bytes for email.
-
setEmail
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The email to set.- Returns:
- This builder for chaining.
-
clearEmail
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setEmailBytes
Required. Email of the contact.
string email = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for email to set.- Returns:
- This builder for chaining.
-
getPhone
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPhonein interfaceContactOrBuilder- Returns:
- The phone.
-
getPhoneBytes
public com.google.protobuf.ByteString getPhoneBytes()Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPhoneBytesin interfaceContactOrBuilder- Returns:
- The bytes for phone.
-
setPhone
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The phone to set.- Returns:
- This builder for chaining.
-
clearPhone
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPhoneBytes
Required. Phone number of the contact.
string phone = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for phone to set.- Returns:
- This builder for chaining.
-
hasTimeZone
public boolean hasTimeZone()Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTimeZonein interfaceContactOrBuilder- Returns:
- Whether the timeZone field is set.
-
getTimeZone
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTimeZonein interfaceContactOrBuilder- Returns:
- The timeZone.
-
setTimeZone
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setTimeZone
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTimeZone
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearTimeZone
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getTimeZoneBuilder
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getTimeZoneOrBuilder
Optional. Time zone of the contact.
.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTimeZoneOrBuilderin interfaceContactOrBuilder
-
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];- Specified by:
getReachableTimesListin interfaceContactOrBuilder
-
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];- Specified by:
getReachableTimesCountin interfaceContactOrBuilder
-
getReachableTimes
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];- Specified by:
getReachableTimesin interfaceContactOrBuilder
-
setReachableTimes
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]; -
setReachableTimes
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]; -
addReachableTimes
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]; -
addReachableTimes
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]; -
addReachableTimes
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]; -
addReachableTimes
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]; -
addAllReachableTimes
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]; -
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]; -
removeReachableTimes
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]; -
getReachableTimesBuilder
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]; -
getReachableTimesOrBuilder
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];- Specified by:
getReachableTimesOrBuilderin interfaceContactOrBuilder
-
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];- Specified by:
getReachableTimesOrBuilderListin interfaceContactOrBuilder
-
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]; -
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]; -
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];
-