Tabnine Logo
ShareInfo.getShareableUrl
Code IndexAdd Tabnine to your IDE (free)

How to use
getShareableUrl
method
in
com.google.photos.library.v1.proto.ShareInfo

Best Java code snippets using com.google.photos.library.v1.proto.ShareInfo.getShareableUrl (Showing top 6 results out of 315)

origin: google/java-photoslibrary

private JTextArea getMetadataTextArea(Album album) {
 JTextArea metadataTextArea = new JTextArea();
 metadataTextArea.setBorder(METADATA_BORDER);
 metadataTextArea.setLayout(
   new GridLayout(2 /* rows */, 1 /* cols */, 0 /* unset hgap */, 10 /* vgap */));
 metadataTextArea.setEditable(false);
 metadataTextArea.setLineWrap(true);
 metadataTextArea.append(String.format("URL: %s", album.getProductUrl()));
 if (album.hasShareInfo()) {
  metadataTextArea.append(
    String.format("\nShare URL: %s", album.getShareInfo().getShareableUrl()));
  metadataTextArea.append(
    String.format("\nShare Token: %s", album.getShareInfo().getShareToken()));
 }
 return metadataTextArea;
}
origin: google/java-photoslibrary

private JPanel getMetaDataPanel(Album album) {
 JPanel metadataPanel = new JPanel();
 metadataPanel.setBorder(METADATA_BORDER);
 metadataPanel.setLayout(
   new GridLayout(2 /* rows */, 1 /* cols */, 0 /* unset hgap */, 10 /* vgap */));
 metadataPanel.add(
   UIHelper.getFormattedLabel(
     String.format("<html>URL: %s</html>", album.getProductUrl()), METADATA_TEXT_SIZE));
 if (album.hasShareInfo()) {
  metadataPanel.add(
    UIHelper.getFormattedLabel(
      String.format("<html>Share URL: %s</html>", album.getShareInfo().getShareableUrl()),
      METADATA_TEXT_SIZE));
 }
 return metadataPanel;
}
origin: google/java-photoslibrary

/**
 *
 *
 * <pre>
 * A link to the album that's now shared on the Google Photos website and app.
 * Anyone with the link can access this shared album and see all of the items
 * present in the album.
 * </pre>
 *
 * <code>string shareable_url = 2;</code>
 */
public Builder clearShareableUrl() {
 shareableUrl_ = getDefaultInstance().getShareableUrl();
 onChanged();
 return this;
}
/**
origin: google/java-photoslibrary

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptor().hashCode();
 if (hasSharedAlbumOptions()) {
  hash = (37 * hash) + SHARED_ALBUM_OPTIONS_FIELD_NUMBER;
  hash = (53 * hash) + getSharedAlbumOptions().hashCode();
 }
 hash = (37 * hash) + SHAREABLE_URL_FIELD_NUMBER;
 hash = (53 * hash) + getShareableUrl().hashCode();
 hash = (37 * hash) + SHARE_TOKEN_FIELD_NUMBER;
 hash = (53 * hash) + getShareToken().hashCode();
 hash = (37 * hash) + IS_JOINED_FIELD_NUMBER;
 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsJoined());
 hash = (29 * hash) + unknownFields.hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: google/java-photoslibrary

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof com.google.photos.library.v1.proto.ShareInfo)) {
  return super.equals(obj);
 }
 com.google.photos.library.v1.proto.ShareInfo other =
   (com.google.photos.library.v1.proto.ShareInfo) obj;
 boolean result = true;
 result = result && (hasSharedAlbumOptions() == other.hasSharedAlbumOptions());
 if (hasSharedAlbumOptions()) {
  result = result && getSharedAlbumOptions().equals(other.getSharedAlbumOptions());
 }
 result = result && getShareableUrl().equals(other.getShareableUrl());
 result = result && getShareToken().equals(other.getShareToken());
 result = result && (getIsJoined() == other.getIsJoined());
 result = result && unknownFields.equals(other.unknownFields);
 return result;
}
origin: google/java-photoslibrary

public Builder mergeFrom(com.google.photos.library.v1.proto.ShareInfo other) {
 if (other == com.google.photos.library.v1.proto.ShareInfo.getDefaultInstance()) return this;
 if (other.hasSharedAlbumOptions()) {
  mergeSharedAlbumOptions(other.getSharedAlbumOptions());
 }
 if (!other.getShareableUrl().isEmpty()) {
  shareableUrl_ = other.shareableUrl_;
  onChanged();
 }
 if (!other.getShareToken().isEmpty()) {
  shareToken_ = other.shareToken_;
  onChanged();
 }
 if (other.getIsJoined() != false) {
  setIsJoined(other.getIsJoined());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
com.google.photos.library.v1.protoShareInfogetShareableUrl

Javadoc

 
A link to the album that's now shared on the Google Photos website and app. 
Anyone with the link can access this shared album and see all of the items 
present in the album. 
string shareable_url = 2;

Popular methods of ShareInfo

  • getShareToken
    A token that can be used by other users to join this shared album via the API. string share_to
  • <init>
  • equals
  • getDefaultInstance
  • getDescriptor
  • getIsJoined
    True if the user has joined the album. This is always true for the owner of the shared album.
  • getShareTokenBytes
    A token that can be used by other users to join this shared album via the API. string share_to
  • getShareableUrlBytes
    A link to the album that's now shared on the Google Photos website and app. Anyone with the link
  • getSharedAlbumOptions
    Options that control the sharing of an album. .google.photos.library.v1.SharedAlbumOptions shar
  • hasSharedAlbumOptions
    Options that control the sharing of an album. .google.photos.library.v1.SharedAlbumOptions shar
  • hashCode
  • isInitialized
  • hashCode,
  • isInitialized,
  • makeExtensionsImmutable,
  • newBuilder,
  • parseUnknownFieldProto3,
  • parser,
  • toBuilder

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now