All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.photos.library.v1.proto.ListSharedAlbumsResponse Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/photos/library/v1/photos_library.proto

package com.google.photos.library.v1.proto;

/**
 *
 *
 * 
 * List of shared albums requested.
 * 
* * Protobuf type {@code google.photos.library.v1.ListSharedAlbumsResponse} */ public final class ListSharedAlbumsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.photos.library.v1.ListSharedAlbumsResponse) ListSharedAlbumsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListSharedAlbumsResponse.newBuilder() to construct. private ListSharedAlbumsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListSharedAlbumsResponse() { sharedAlbums_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSharedAlbumsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListSharedAlbumsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { sharedAlbums_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } sharedAlbums_.add( input.readMessage( com.google.photos.types.proto.Album.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sharedAlbums_ = java.util.Collections.unmodifiableList(sharedAlbums_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.photos.library.v1.proto.LibraryServiceProto .internal_static_google_photos_library_v1_ListSharedAlbumsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.photos.library.v1.proto.LibraryServiceProto .internal_static_google_photos_library_v1_ListSharedAlbumsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.photos.library.v1.proto.ListSharedAlbumsResponse.class, com.google.photos.library.v1.proto.ListSharedAlbumsResponse.Builder.class); } public static final int SHARED_ALBUMS_FIELD_NUMBER = 1; private java.util.List sharedAlbums_; /** * * *
   * Output only. List of shared albums.
   * 
* * repeated .google.photos.types.Album shared_albums = 1; */ @java.lang.Override public java.util.List getSharedAlbumsList() { return sharedAlbums_; } /** * * *
   * Output only. List of shared albums.
   * 
* * repeated .google.photos.types.Album shared_albums = 1; */ @java.lang.Override public java.util.List getSharedAlbumsOrBuilderList() { return sharedAlbums_; } /** * * *
   * Output only. List of shared albums.
   * 
* * repeated .google.photos.types.Album shared_albums = 1; */ @java.lang.Override public int getSharedAlbumsCount() { return sharedAlbums_.size(); } /** * * *
   * Output only. List of shared albums.
   * 
* * repeated .google.photos.types.Album shared_albums = 1; */ @java.lang.Override public com.google.photos.types.proto.Album getSharedAlbums(int index) { return sharedAlbums_.get(index); } /** * * *
   * Output only. List of shared albums.
   * 
* * repeated .google.photos.types.Album shared_albums = 1; */ @java.lang.Override public com.google.photos.types.proto.AlbumOrBuilder getSharedAlbumsOrBuilder(int index) { return sharedAlbums_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** * * *
   * Output only. Token to use to get the next set of shared albums. Populated
   * if there are more shared albums to retrieve for this request.
   * 
* * string next_page_token = 2; * * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** * * *
   * Output only. Token to use to get the next set of shared albums. Populated
   * if there are more shared albums to retrieve for this request.
   * 
* * string next_page_token = 2; * * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sharedAlbums_.size(); i++) { output.writeMessage(1, sharedAlbums_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sharedAlbums_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sharedAlbums_.get(i)); } if (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @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.ListSharedAlbumsResponse)) { return super.equals(obj); } com.google.photos.library.v1.proto.ListSharedAlbumsResponse other = (com.google.photos.library.v1.proto.ListSharedAlbumsResponse) obj; if (!getSharedAlbumsList().equals(other.getSharedAlbumsList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSharedAlbumsCount() > 0) { hash = (37 * hash) + SHARED_ALBUMS_FIELD_NUMBER; hash = (53 * hash) + getSharedAlbumsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.photos.library.v1.proto.ListSharedAlbumsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * List of shared albums requested.
   * 
* * Protobuf type {@code google.photos.library.v1.ListSharedAlbumsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.photos.library.v1.ListSharedAlbumsResponse) com.google.photos.library.v1.proto.ListSharedAlbumsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.photos.library.v1.proto.LibraryServiceProto .internal_static_google_photos_library_v1_ListSharedAlbumsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.photos.library.v1.proto.LibraryServiceProto .internal_static_google_photos_library_v1_ListSharedAlbumsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.photos.library.v1.proto.ListSharedAlbumsResponse.class, com.google.photos.library.v1.proto.ListSharedAlbumsResponse.Builder.class); } // Construct using com.google.photos.library.v1.proto.ListSharedAlbumsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSharedAlbumsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (sharedAlbumsBuilder_ == null) { sharedAlbums_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { sharedAlbumsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.photos.library.v1.proto.LibraryServiceProto .internal_static_google_photos_library_v1_ListSharedAlbumsResponse_descriptor; } @java.lang.Override public com.google.photos.library.v1.proto.ListSharedAlbumsResponse getDefaultInstanceForType() { return com.google.photos.library.v1.proto.ListSharedAlbumsResponse.getDefaultInstance(); } @java.lang.Override public com.google.photos.library.v1.proto.ListSharedAlbumsResponse build() { com.google.photos.library.v1.proto.ListSharedAlbumsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.photos.library.v1.proto.ListSharedAlbumsResponse buildPartial() { com.google.photos.library.v1.proto.ListSharedAlbumsResponse result = new com.google.photos.library.v1.proto.ListSharedAlbumsResponse(this); int from_bitField0_ = bitField0_; if (sharedAlbumsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sharedAlbums_ = java.util.Collections.unmodifiableList(sharedAlbums_); bitField0_ = (bitField0_ & ~0x00000001); } result.sharedAlbums_ = sharedAlbums_; } else { result.sharedAlbums_ = sharedAlbumsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.photos.library.v1.proto.ListSharedAlbumsResponse) { return mergeFrom((com.google.photos.library.v1.proto.ListSharedAlbumsResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.photos.library.v1.proto.ListSharedAlbumsResponse other) { if (other == com.google.photos.library.v1.proto.ListSharedAlbumsResponse.getDefaultInstance()) return this; if (sharedAlbumsBuilder_ == null) { if (!other.sharedAlbums_.isEmpty()) { if (sharedAlbums_.isEmpty()) { sharedAlbums_ = other.sharedAlbums_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSharedAlbumsIsMutable(); sharedAlbums_.addAll(other.sharedAlbums_); } onChanged(); } } else { if (!other.sharedAlbums_.isEmpty()) { if (sharedAlbumsBuilder_.isEmpty()) { sharedAlbumsBuilder_.dispose(); sharedAlbumsBuilder_ = null; sharedAlbums_ = other.sharedAlbums_; bitField0_ = (bitField0_ & ~0x00000001); sharedAlbumsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSharedAlbumsFieldBuilder() : null; } else { sharedAlbumsBuilder_.addAllMessages(other.sharedAlbums_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.photos.library.v1.proto.ListSharedAlbumsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.photos.library.v1.proto.ListSharedAlbumsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List sharedAlbums_ = java.util.Collections.emptyList(); private void ensureSharedAlbumsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sharedAlbums_ = new java.util.ArrayList(sharedAlbums_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.photos.types.proto.Album, com.google.photos.types.proto.Album.Builder, com.google.photos.types.proto.AlbumOrBuilder> sharedAlbumsBuilder_; /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public java.util.List getSharedAlbumsList() { if (sharedAlbumsBuilder_ == null) { return java.util.Collections.unmodifiableList(sharedAlbums_); } else { return sharedAlbumsBuilder_.getMessageList(); } } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public int getSharedAlbumsCount() { if (sharedAlbumsBuilder_ == null) { return sharedAlbums_.size(); } else { return sharedAlbumsBuilder_.getCount(); } } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public com.google.photos.types.proto.Album getSharedAlbums(int index) { if (sharedAlbumsBuilder_ == null) { return sharedAlbums_.get(index); } else { return sharedAlbumsBuilder_.getMessage(index); } } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder setSharedAlbums(int index, com.google.photos.types.proto.Album value) { if (sharedAlbumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSharedAlbumsIsMutable(); sharedAlbums_.set(index, value); onChanged(); } else { sharedAlbumsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder setSharedAlbums( int index, com.google.photos.types.proto.Album.Builder builderForValue) { if (sharedAlbumsBuilder_ == null) { ensureSharedAlbumsIsMutable(); sharedAlbums_.set(index, builderForValue.build()); onChanged(); } else { sharedAlbumsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder addSharedAlbums(com.google.photos.types.proto.Album value) { if (sharedAlbumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSharedAlbumsIsMutable(); sharedAlbums_.add(value); onChanged(); } else { sharedAlbumsBuilder_.addMessage(value); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder addSharedAlbums(int index, com.google.photos.types.proto.Album value) { if (sharedAlbumsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSharedAlbumsIsMutable(); sharedAlbums_.add(index, value); onChanged(); } else { sharedAlbumsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder addSharedAlbums(com.google.photos.types.proto.Album.Builder builderForValue) { if (sharedAlbumsBuilder_ == null) { ensureSharedAlbumsIsMutable(); sharedAlbums_.add(builderForValue.build()); onChanged(); } else { sharedAlbumsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder addSharedAlbums( int index, com.google.photos.types.proto.Album.Builder builderForValue) { if (sharedAlbumsBuilder_ == null) { ensureSharedAlbumsIsMutable(); sharedAlbums_.add(index, builderForValue.build()); onChanged(); } else { sharedAlbumsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder addAllSharedAlbums( java.lang.Iterable values) { if (sharedAlbumsBuilder_ == null) { ensureSharedAlbumsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sharedAlbums_); onChanged(); } else { sharedAlbumsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder clearSharedAlbums() { if (sharedAlbumsBuilder_ == null) { sharedAlbums_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sharedAlbumsBuilder_.clear(); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public Builder removeSharedAlbums(int index) { if (sharedAlbumsBuilder_ == null) { ensureSharedAlbumsIsMutable(); sharedAlbums_.remove(index); onChanged(); } else { sharedAlbumsBuilder_.remove(index); } return this; } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public com.google.photos.types.proto.Album.Builder getSharedAlbumsBuilder(int index) { return getSharedAlbumsFieldBuilder().getBuilder(index); } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public com.google.photos.types.proto.AlbumOrBuilder getSharedAlbumsOrBuilder(int index) { if (sharedAlbumsBuilder_ == null) { return sharedAlbums_.get(index); } else { return sharedAlbumsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public java.util.List getSharedAlbumsOrBuilderList() { if (sharedAlbumsBuilder_ != null) { return sharedAlbumsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sharedAlbums_); } } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public com.google.photos.types.proto.Album.Builder addSharedAlbumsBuilder() { return getSharedAlbumsFieldBuilder() .addBuilder(com.google.photos.types.proto.Album.getDefaultInstance()); } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public com.google.photos.types.proto.Album.Builder addSharedAlbumsBuilder(int index) { return getSharedAlbumsFieldBuilder() .addBuilder(index, com.google.photos.types.proto.Album.getDefaultInstance()); } /** * * *
     * Output only. List of shared albums.
     * 
* * repeated .google.photos.types.Album shared_albums = 1; */ public java.util.List getSharedAlbumsBuilderList() { return getSharedAlbumsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.photos.types.proto.Album, com.google.photos.types.proto.Album.Builder, com.google.photos.types.proto.AlbumOrBuilder> getSharedAlbumsFieldBuilder() { if (sharedAlbumsBuilder_ == null) { sharedAlbumsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.photos.types.proto.Album, com.google.photos.types.proto.Album.Builder, com.google.photos.types.proto.AlbumOrBuilder>( sharedAlbums_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sharedAlbums_ = null; } return sharedAlbumsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** * * *
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     * 
* * string next_page_token = 2; * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     * 
* * string next_page_token = 2; * * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     * 
* * string next_page_token = 2; * * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** * * *
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     * 
* * string next_page_token = 2; * * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** * * *
     * Output only. Token to use to get the next set of shared albums. Populated
     * if there are more shared albums to retrieve for this request.
     * 
* * string next_page_token = 2; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.photos.library.v1.ListSharedAlbumsResponse) } // @@protoc_insertion_point(class_scope:google.photos.library.v1.ListSharedAlbumsResponse) private static final com.google.photos.library.v1.proto.ListSharedAlbumsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.photos.library.v1.proto.ListSharedAlbumsResponse(); } public static com.google.photos.library.v1.proto.ListSharedAlbumsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListSharedAlbumsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListSharedAlbumsResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.photos.library.v1.proto.ListSharedAlbumsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy