Class Site.Builder (0.3.0)

public static final class Site.Builder extends GeneratedMessageV3.Builder<Site.Builder> implements SiteOrBuilder

A physical site where hardware will be installed.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Site

Implements

SiteOrBuilder

Static Methods

getDescriptor()

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

Methods

addAccessTimes(TimePeriod value)

public Site.Builder addAccessTimes(TimePeriod value)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TimePeriod
Returns
Type Description
Site.Builder

addAccessTimes(TimePeriod.Builder builderForValue)

public Site.Builder addAccessTimes(TimePeriod.Builder builderForValue)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TimePeriod.Builder
Returns
Type Description
Site.Builder

addAccessTimes(int index, TimePeriod value)

public Site.Builder addAccessTimes(int index, TimePeriod value)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value TimePeriod
Returns
Type Description
Site.Builder

addAccessTimes(int index, TimePeriod.Builder builderForValue)

public Site.Builder addAccessTimes(int index, TimePeriod.Builder builderForValue)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue TimePeriod.Builder
Returns
Type Description
Site.Builder

addAccessTimesBuilder()

public TimePeriod.Builder addAccessTimesBuilder()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimePeriod.Builder

addAccessTimesBuilder(int index)

public TimePeriod.Builder addAccessTimesBuilder(int index)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimePeriod.Builder

addAllAccessTimes(Iterable<? extends TimePeriod> values)

public Site.Builder addAllAccessTimes(Iterable<? extends TimePeriod> values)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod>
Returns
Type Description
Site.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Site build()
Returns
Type Description
Site

buildPartial()

public Site buildPartial()
Returns
Type Description
Site

clear()

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

clearAccessTimes()

public Site.Builder clearAccessTimes()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Site.Builder

clearCreateTime()

public Site.Builder clearCreateTime()

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Site.Builder

clearDescription()

public Site.Builder clearDescription()

Optional. Description of this Site.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Site.Builder

This builder for chaining.

clearDisplayName()

public Site.Builder clearDisplayName()

Optional. Display name of this Site.

string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Site.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGoogleMapsPinUri()

public Site.Builder clearGoogleMapsPinUri()

Required. A URL to the Google Maps address location of the site. An example value is https://goo.gl/maps/xxxxxxxxx.

string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Site.Builder

This builder for chaining.

clearLabels()

public Site.Builder clearLabels()
Returns
Type Description
Site.Builder

clearName()

public Site.Builder clearName()

Identifier. Name of the site. Format: projects/{project}/locations/{location}/sites/{site}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
Site.Builder

This builder for chaining.

clearNotes()

public Site.Builder clearNotes()

Optional. Any additional notes for this Site. Please include information about:

  • security or access restrictions
  • any regulations affecting the technicians visiting the site
  • any special process or approval required to move the equipment
  • whether a representative will be available during site visits

string notes = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Site.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrganizationContact()

public Site.Builder clearOrganizationContact()

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Site.Builder

clearUpdateTime()

public Site.Builder clearUpdateTime()

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Site.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAccessTimes(int index)

public TimePeriod getAccessTimes(int index)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimePeriod

getAccessTimesBuilder(int index)

public TimePeriod.Builder getAccessTimesBuilder(int index)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimePeriod.Builder

getAccessTimesBuilderList()

public List<TimePeriod.Builder> getAccessTimesBuilderList()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getAccessTimesCount()

public int getAccessTimesCount()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAccessTimesList()

public List<TimePeriod> getAccessTimesList()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<TimePeriod>

getAccessTimesOrBuilder(int index)

public TimePeriodOrBuilder getAccessTimesOrBuilder(int index)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
TimePeriodOrBuilder

getAccessTimesOrBuilderList()

public List<? extends TimePeriodOrBuilder> getAccessTimesOrBuilderList()

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Site getDefaultInstanceForType()
Returns
Type Description
Site

getDescription()

public String getDescription()

Optional. Description of this Site.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of this Site.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. Display name of this Site.

string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name of this Site.

string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getGoogleMapsPinUri()

public String getGoogleMapsPinUri()

Required. A URL to the Google Maps address location of the site. An example value is https://goo.gl/maps/xxxxxxxxx.

string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The googleMapsPinUri.

getGoogleMapsPinUriBytes()

public ByteString getGoogleMapsPinUriBytes()

Required. A URL to the Google Maps address location of the site. An example value is https://goo.gl/maps/xxxxxxxxx.

string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for googleMapsPinUri.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Name of the site. Format: projects/{project}/locations/{location}/sites/{site}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the site. Format: projects/{project}/locations/{location}/sites/{site}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNotes()

public String getNotes()

Optional. Any additional notes for this Site. Please include information about:

  • security or access restrictions
  • any regulations affecting the technicians visiting the site
  • any special process or approval required to move the equipment
  • whether a representative will be available during site visits

string notes = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The notes.

getNotesBytes()

public ByteString getNotesBytes()

Optional. Any additional notes for this Site. Please include information about:

  • security or access restrictions
  • any regulations affecting the technicians visiting the site
  • any special process or approval required to move the equipment
  • whether a representative will be available during site visits

string notes = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for notes.

getOrganizationContact()

public OrganizationContact getOrganizationContact()

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrganizationContact

The organizationContact.

getOrganizationContactBuilder()

public OrganizationContact.Builder getOrganizationContactBuilder()

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrganizationContact.Builder

getOrganizationContactOrBuilder()

public OrganizationContactOrBuilder getOrganizationContactOrBuilder()

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OrganizationContactOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasOrganizationContact()

public boolean hasOrganizationContact()

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the organizationContact field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Site.Builder mergeCreateTime(Timestamp value)

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

mergeFrom(Site other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOrganizationContact(OrganizationContact value)

public Site.Builder mergeOrganizationContact(OrganizationContact value)

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OrganizationContact
Returns
Type Description
Site.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Site.Builder mergeUpdateTime(Timestamp value)

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

putAllLabels(Map<String,String> values)

public Site.Builder putAllLabels(Map<String,String> values)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Site.Builder

putLabels(String key, String value)

public Site.Builder putLabels(String key, String value)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Site.Builder

removeAccessTimes(int index)

public Site.Builder removeAccessTimes(int index)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Site.Builder

removeLabels(String key)

public Site.Builder removeLabels(String key)

Optional. Labels associated with this site as key value pairs. For more information about labels, see Create and manage labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Site.Builder

setAccessTimes(int index, TimePeriod value)

public Site.Builder setAccessTimes(int index, TimePeriod value)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value TimePeriod
Returns
Type Description
Site.Builder

setAccessTimes(int index, TimePeriod.Builder builderForValue)

public Site.Builder setAccessTimes(int index, TimePeriod.Builder builderForValue)

Optional. The time periods when the site is accessible. If this field is empty, the site is accessible at all times.

repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue TimePeriod.Builder
Returns
Type Description
Site.Builder

setCreateTime(Timestamp value)

public Site.Builder setCreateTime(Timestamp value)

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Site.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when this site was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Site.Builder

setDescription(String value)

public Site.Builder setDescription(String value)

Optional. Description of this Site.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Site.Builder setDescriptionBytes(ByteString value)

Optional. Description of this Site.

string description = 25 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setDisplayName(String value)

public Site.Builder setDisplayName(String value)

Optional. Display name of this Site.

string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Site.Builder setDisplayNameBytes(ByteString value)

Optional. Display name of this Site.

string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGoogleMapsPinUri(String value)

public Site.Builder setGoogleMapsPinUri(String value)

Required. A URL to the Google Maps address location of the site. An example value is https://goo.gl/maps/xxxxxxxxx.

string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The googleMapsPinUri to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setGoogleMapsPinUriBytes(ByteString value)

public Site.Builder setGoogleMapsPinUriBytes(ByteString value)

Required. A URL to the Google Maps address location of the site. An example value is https://goo.gl/maps/xxxxxxxxx.

string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for googleMapsPinUri to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setName(String value)

public Site.Builder setName(String value)

Identifier. Name of the site. Format: projects/{project}/locations/{location}/sites/{site}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Site.Builder setNameBytes(ByteString value)

Identifier. Name of the site. Format: projects/{project}/locations/{location}/sites/{site}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setNotes(String value)

public Site.Builder setNotes(String value)

Optional. Any additional notes for this Site. Please include information about:

  • security or access restrictions
  • any regulations affecting the technicians visiting the site
  • any special process or approval required to move the equipment
  • whether a representative will be available during site visits

string notes = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The notes to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setNotesBytes(ByteString value)

public Site.Builder setNotesBytes(ByteString value)

Optional. Any additional notes for this Site. Please include information about:

  • security or access restrictions
  • any regulations affecting the technicians visiting the site
  • any special process or approval required to move the equipment
  • whether a representative will be available during site visits

string notes = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for notes to set.

Returns
Type Description
Site.Builder

This builder for chaining.

setOrganizationContact(OrganizationContact value)

public Site.Builder setOrganizationContact(OrganizationContact value)

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value OrganizationContact
Returns
Type Description
Site.Builder

setOrganizationContact(OrganizationContact.Builder builderForValue)

public Site.Builder setOrganizationContact(OrganizationContact.Builder builderForValue)

Required. Contact information for this site.

.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue OrganizationContact.Builder
Returns
Type Description
Site.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Site.Builder setUpdateTime(Timestamp value)

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Site.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Site.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when this site was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Site.Builder