Public Member Functions | Private Attributes | List of all members
com.google.protobuf.UnmodifiableLazyStringList Class Reference
Inheritance diagram for com.google.protobuf.UnmodifiableLazyStringList:
Inheritance graph
[legend]

Public Member Functions

void add (byte[] element)
 
void add (byte[] element)
 
void add (ByteString element)
 
void add (ByteString element)
 
boolean addAllByteArray (Collection< byte[]> element)
 
boolean addAllByteArray (Collection< byte[]> element)
 
boolean addAllByteString (Collection<? extends ByteString > element)
 
boolean addAllByteString (Collection<? extends ByteString > element)
 
List< byte[]> asByteArrayList ()
 
List< byte[]> asByteArrayList ()
 
List< ByteStringasByteStringList ()
 
List< ByteStringasByteStringList ()
 
String get (int index)
 
String get (int index)
 
byte[] getByteArray (int index)
 
byte[] getByteArray (int index)
 
ByteString getByteString (int index)
 
ByteString getByteString (int index)
 
Object getRaw (int index)
 
Object getRaw (int index)
 
List<?> getUnderlyingElements ()
 
List<?> getUnderlyingElements ()
 
LazyStringList getUnmodifiableView ()
 
LazyStringList getUnmodifiableView ()
 
Iterator< String > iterator ()
 
Iterator< String > iterator ()
 
ListIterator< String > listIterator (final int index)
 
ListIterator< String > listIterator (final int index)
 
void mergeFrom (LazyStringList other)
 
void mergeFrom (LazyStringList other)
 
void set (int index, byte[] element)
 
void set (int index, byte[] element)
 
void set (int index, ByteString element)
 
void set (int index, ByteString element)
 
int size ()
 
int size ()
 
 UnmodifiableLazyStringList (LazyStringList list)
 
 UnmodifiableLazyStringList (LazyStringList list)
 

Private Attributes

final LazyStringList list
 

Detailed Description

An implementation of LazyStringList that wraps another LazyStringList such that it cannot be modified via the wrapper.

Author
jonp@.nosp@m.goog.nosp@m.le.co.nosp@m.m (Jon Perlow)

Definition at line 47 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

Constructor & Destructor Documentation

◆ UnmodifiableLazyStringList() [1/2]

com.google.protobuf.UnmodifiableLazyStringList.UnmodifiableLazyStringList ( LazyStringList  list)
inline

◆ UnmodifiableLazyStringList() [2/2]

com.google.protobuf.UnmodifiableLazyStringList.UnmodifiableLazyStringList ( LazyStringList  list)
inline

Member Function Documentation

◆ add() [1/4]

void com.google.protobuf.UnmodifiableLazyStringList.add ( byte[]  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 97 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ add() [2/4]

void com.google.protobuf.UnmodifiableLazyStringList.add ( byte[]  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 97 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ add() [3/4]

void com.google.protobuf.UnmodifiableLazyStringList.add ( ByteString  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 77 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ add() [4/4]

void com.google.protobuf.UnmodifiableLazyStringList.add ( ByteString  element)
inline

Appends the specified element to the end of this list (optional operation).

Parameters
elementelement to be appended to this list
Exceptions
UnsupportedOperationExceptionif the add operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 77 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ addAllByteArray() [1/2]

boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteArray ( Collection< byte[]>  c)
inline

Appends all elements in the specified byte[] collection to the end of this list.

Parameters
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteArray operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 107 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ addAllByteArray() [2/2]

boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteArray ( Collection< byte[]>  c)
inline

Appends all elements in the specified byte[] collection to the end of this list.

Parameters
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteArray operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 107 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ addAllByteString() [1/2]

boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteString ( Collection<? extends ByteString c)
inline

Appends all elements in the specified ByteString collection to the end of this list.

Parameters
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteString operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 87 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ addAllByteString() [2/2]

boolean com.google.protobuf.UnmodifiableLazyStringList.addAllByteString ( Collection<? extends ByteString c)
inline

Appends all elements in the specified ByteString collection to the end of this list.

Parameters
ccollection whose elements are to be added to this list
Returns
true if this list changed as a result of the call
Exceptions
UnsupportedOperationExceptionif the addAllByteString operation is not supported by this list

Implements com.google.protobuf.LazyStringList.

Definition at line 87 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ asByteArrayList() [1/2]

List<byte[]> com.google.protobuf.UnmodifiableLazyStringList.asByteArrayList ( )
inline

Returns a mutable view of this list. Changes to the view will be made into the original list. This method is used in mutable API only.

Implements com.google.protobuf.LazyStringList.

Definition at line 197 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ asByteArrayList() [2/2]

List<byte[]> com.google.protobuf.UnmodifiableLazyStringList.asByteArrayList ( )
inline

Returns a mutable view of this list. Changes to the view will be made into the original list. This method is used in mutable API only.

Implements com.google.protobuf.LazyStringList.

Definition at line 197 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ asByteStringList() [1/2]

List<ByteString> com.google.protobuf.UnmodifiableLazyStringList.asByteStringList ( )
inline

Returns a view of the data as a list of ByteStrings.

Implements com.google.protobuf.ProtocolStringList.

Definition at line 202 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ asByteStringList() [2/2]

List<ByteString> com.google.protobuf.UnmodifiableLazyStringList.asByteStringList ( )
inline

Returns a view of the data as a list of ByteStrings.

Implements com.google.protobuf.ProtocolStringList.

Definition at line 202 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ get() [1/2]

String com.google.protobuf.UnmodifiableLazyStringList.get ( int  index)
inline

◆ get() [2/2]

String com.google.protobuf.UnmodifiableLazyStringList.get ( int  index)
inline

◆ getByteArray() [1/2]

byte [] com.google.protobuf.UnmodifiableLazyStringList.getByteArray ( int  index)
inline

Returns the element at the specified position in this list as byte[].

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 92 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getByteArray() [2/2]

byte [] com.google.protobuf.UnmodifiableLazyStringList.getByteArray ( int  index)
inline

Returns the element at the specified position in this list as byte[].

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 92 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getByteString() [1/2]

ByteString com.google.protobuf.UnmodifiableLazyStringList.getByteString ( int  index)
inline

Returns the element at the specified position in this list as a ByteString.

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 72 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getByteString() [2/2]

ByteString com.google.protobuf.UnmodifiableLazyStringList.getByteString ( int  index)
inline

Returns the element at the specified position in this list as a ByteString.

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 72 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getRaw() [1/2]

Object com.google.protobuf.UnmodifiableLazyStringList.getRaw ( int  index)
inline

Returns the element at the specified position in this list as an Object that will either be a String or a ByteString.

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 62 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getRaw() [2/2]

Object com.google.protobuf.UnmodifiableLazyStringList.getRaw ( int  index)
inline

Returns the element at the specified position in this list as an Object that will either be a String or a ByteString.

Parameters
indexindex of the element to return
Returns
the element at the specified position in this list
Exceptions
IndexOutOfBoundsExceptionif the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 62 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getUnderlyingElements() [1/2]

List<?> com.google.protobuf.UnmodifiableLazyStringList.getUnderlyingElements ( )
inline

Returns an unmodifiable List of the underlying elements, each of which is either a

String

or its equivalent UTF-8 encoded

ByteString

or byte[]. It is an error for the caller to modify the returned List, and attempting to do so will result in an {}.

Implements com.google.protobuf.LazyStringList.

Definition at line 186 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getUnderlyingElements() [2/2]

List<?> com.google.protobuf.UnmodifiableLazyStringList.getUnderlyingElements ( )
inline

Returns an unmodifiable List of the underlying elements, each of which is either a

String

or its equivalent UTF-8 encoded

ByteString

or byte[]. It is an error for the caller to modify the returned List, and attempting to do so will result in an {}.

Implements com.google.protobuf.LazyStringList.

Definition at line 186 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ getUnmodifiableView() [1/2]

LazyStringList com.google.protobuf.UnmodifiableLazyStringList.getUnmodifiableView ( )
inline

◆ getUnmodifiableView() [2/2]

LazyStringList com.google.protobuf.UnmodifiableLazyStringList.getUnmodifiableView ( )
inline

Returns an unmodifiable view of the list.

Implements com.google.protobuf.LazyStringList.

Definition at line 207 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ iterator() [1/2]

Iterator<String> com.google.protobuf.UnmodifiableLazyStringList.iterator ( )
inline

◆ iterator() [2/2]

Iterator<String> com.google.protobuf.UnmodifiableLazyStringList.iterator ( )
inline

◆ listIterator() [1/2]

ListIterator<String> com.google.protobuf.UnmodifiableLazyStringList.listIterator ( final int  index)
inline

◆ listIterator() [2/2]

ListIterator<String> com.google.protobuf.UnmodifiableLazyStringList.listIterator ( final int  index)
inline

◆ mergeFrom() [1/2]

void com.google.protobuf.UnmodifiableLazyStringList.mergeFrom ( LazyStringList  other)
inline

◆ mergeFrom() [2/2]

void com.google.protobuf.UnmodifiableLazyStringList.mergeFrom ( LazyStringList  other)
inline

◆ set() [1/4]

void com.google.protobuf.UnmodifiableLazyStringList.set ( int  index,
byte[]  element 
)
inline

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 102 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ set() [2/4]

void com.google.protobuf.UnmodifiableLazyStringList.set ( int  index,
byte[]  element 
)
inline

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 102 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ set() [3/4]

void com.google.protobuf.UnmodifiableLazyStringList.set ( int  index,
ByteString  element 
)
inline

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 82 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ set() [4/4]

void com.google.protobuf.UnmodifiableLazyStringList.set ( int  index,
ByteString  element 
)
inline

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
indexindex of the element to replace
elementthe element to be stored at the specified position
Exceptions
UnsupportedOperationExceptionif the set operation is not supported by this list IndexOutOfBoundsException if the index is out of range (
index < 0 || index >=
size()
)

Implements com.google.protobuf.LazyStringList.

Definition at line 82 of file protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java.

◆ size() [1/2]

int com.google.protobuf.UnmodifiableLazyStringList.size ( )
inline

◆ size() [2/2]

int com.google.protobuf.UnmodifiableLazyStringList.size ( )
inline

Member Data Documentation

◆ list

final LazyStringList com.google.protobuf.UnmodifiableLazyStringList.list
private

The documentation for this class was generated from the following file:
com.google.protobuf.UnmodifiableLazyStringList.size
int size()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java:67


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:08