java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gdchardwaremanagement.v1alpha.Site
All Implemented Interfaces:
SiteOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Site extends com.google.protobuf.GeneratedMessage implements SiteOrBuilder
 A physical site where hardware will be installed.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Site
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • ORGANIZATION_CONTACT_FIELD_NUMBER

      public static final int ORGANIZATION_CONTACT_FIELD_NUMBER
      See Also:
    • GOOGLE_MAPS_PIN_URI_FIELD_NUMBER

      public static final int GOOGLE_MAPS_PIN_URI_FIELD_NUMBER
      See Also:
    • ACCESS_TIMES_FIELD_NUMBER

      public static final int ACCESS_TIMES_FIELD_NUMBER
      See Also:
    • NOTES_FIELD_NUMBER

      public static final int NOTES_FIELD_NUMBER
      See Also:
    • CUSTOMER_SITE_ID_FIELD_NUMBER

      public static final int CUSTOMER_SITE_ID_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. Name of the site.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SiteOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of the site.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SiteOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Optional. Display name of this Site.
       
      string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface SiteOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Display name of this Site.
       
      string display_name = 24 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface SiteOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       Optional. Description of this Site.
       
      string description = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface SiteOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of this Site.
       
      string description = 25 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface SiteOrBuilder
      Returns:
      The bytes for description.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when this site was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SiteOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this site was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SiteOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this site was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SiteOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface SiteOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when this site was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface SiteOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when this site was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface SiteOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SiteOrBuilder
       Optional. Labels associated with this site as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface SiteOrBuilder
    • containsLabels

      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](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface SiteOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SiteOrBuilder
    • 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](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface SiteOrBuilder
    • getLabelsOrDefault

      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](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface SiteOrBuilder
    • getLabelsOrThrow

      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](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface SiteOrBuilder
    • hasOrganizationContact

      public boolean hasOrganizationContact()
       Required. Contact information for this site.
       
      .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasOrganizationContact in interface SiteOrBuilder
      Returns:
      Whether the organizationContact field is set.
    • getOrganizationContact

      public OrganizationContact getOrganizationContact()
       Required. Contact information for this site.
       
      .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrganizationContact in interface SiteOrBuilder
      Returns:
      The organizationContact.
    • getOrganizationContactOrBuilder

      public OrganizationContactOrBuilder getOrganizationContactOrBuilder()
       Required. Contact information for this site.
       
      .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOrganizationContactOrBuilder in interface SiteOrBuilder
    • getGoogleMapsPinUri

      public String getGoogleMapsPinUri()
       Optional. 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) = OPTIONAL];
      Specified by:
      getGoogleMapsPinUri in interface SiteOrBuilder
      Returns:
      The googleMapsPinUri.
    • getGoogleMapsPinUriBytes

      public com.google.protobuf.ByteString getGoogleMapsPinUriBytes()
       Optional. 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) = OPTIONAL];
      Specified by:
      getGoogleMapsPinUriBytes in interface SiteOrBuilder
      Returns:
      The bytes for googleMapsPinUri.
    • 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.
      
       This field is used by Google to schedule the initial installation as well
       as any later hardware maintenance. You may update this at any time. For
       example, if the initial installation is requested during off-hours but
       maintenance should be performed during regular business hours, you should
       update the access times after initial installation is complete.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessTimesList in interface SiteOrBuilder
    • 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.
      
       This field is used by Google to schedule the initial installation as well
       as any later hardware maintenance. You may update this at any time. For
       example, if the initial installation is requested during off-hours but
       maintenance should be performed during regular business hours, you should
       update the access times after initial installation is complete.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessTimesOrBuilderList in interface SiteOrBuilder
    • 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.
      
       This field is used by Google to schedule the initial installation as well
       as any later hardware maintenance. You may update this at any time. For
       example, if the initial installation is requested during off-hours but
       maintenance should be performed during regular business hours, you should
       update the access times after initial installation is complete.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessTimesCount in interface SiteOrBuilder
    • getAccessTimes

      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.
      
       This field is used by Google to schedule the initial installation as well
       as any later hardware maintenance. You may update this at any time. For
       example, if the initial installation is requested during off-hours but
       maintenance should be performed during regular business hours, you should
       update the access times after initial installation is complete.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessTimes in interface SiteOrBuilder
    • getAccessTimesOrBuilder

      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.
      
       This field is used by Google to schedule the initial installation as well
       as any later hardware maintenance. You may update this at any time. For
       example, if the initial installation is requested during off-hours but
       maintenance should be performed during regular business hours, you should
       update the access times after initial installation is complete.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAccessTimesOrBuilder in interface SiteOrBuilder
    • 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];
      Specified by:
      getNotes in interface SiteOrBuilder
      Returns:
      The notes.
    • getNotesBytes

      public com.google.protobuf.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];
      Specified by:
      getNotesBytes in interface SiteOrBuilder
      Returns:
      The bytes for notes.
    • getCustomerSiteId

      public String getCustomerSiteId()
       Optional. Customer defined identifier for this Site. This can be used to
       identify the site in the customer's own systems.
       
      string customer_site_id = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerSiteId in interface SiteOrBuilder
      Returns:
      The customerSiteId.
    • getCustomerSiteIdBytes

      public com.google.protobuf.ByteString getCustomerSiteIdBytes()
       Optional. Customer defined identifier for this Site. This can be used to
       identify the site in the customer's own systems.
       
      string customer_site_id = 28 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerSiteIdBytes in interface SiteOrBuilder
      Returns:
      The bytes for customerSiteId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Site parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Site parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Site parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Site parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Site parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Site parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Site parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Site.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Site.Builder newBuilder()
    • newBuilder

      public static Site.Builder newBuilder(Site prototype)
    • toBuilder

      public Site.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Site.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Site getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Site> parser()
    • getParserForType

      public com.google.protobuf.Parser<Site> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Site getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder