Class BaseWriteChannel.BaseState<ServiceOptionsT,EntityT> (2.59.0)
Stay organized with collections
Save and categorize content based on your preferences.
protected abstract static class BaseWriteChannel.BaseState<ServiceOptionsT,EntityT> implements RestorableState<WriteChannel>, Serializable
Inheritance
Object >
BaseWriteChannel.BaseState<ServiceOptionsT,EntityT>
Implements
com.google.cloud.RestorableState<com.google.cloud.WriteChannel>,
Serializable
Type Parameters |
Name |
Description |
ServiceOptionsT |
|
EntityT |
|
Constructors
BaseState(BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> builder)
protected BaseState(BaseWriteChannel.BaseState.Builder<ServiceOptionsT,EntityT> builder)
Parameter |
Name |
Description |
builder |
Builder<ServiceOptionsT,EntityT>
|
Fields
buffer
protected final byte[] buffer
Field Value |
Type |
Description |
byte[] |
|
chunkSize
protected final int chunkSize
Field Value |
Type |
Description |
int |
|
entity
protected final EntityT entity
Field Value |
Type |
Description |
EntityT |
|
isOpen
protected final boolean isOpen
Field Value |
Type |
Description |
boolean |
|
position
protected final long position
Field Value |
Type |
Description |
long |
|
serviceOptions
protected final ServiceOptionsT serviceOptions
Field Value |
Type |
Description |
ServiceOptionsT |
|
uploadId
protected final String uploadId
Field Value |
Type |
Description |
String |
|
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
toString()
Returns |
Type |
Description |
String |
|
Overrides
toStringHelper()
protected List<BaseWriteChannel.BaseState.ValueHolder> toStringHelper()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[],[],null,["# Class BaseWriteChannel.BaseState<ServiceOptionsT,EntityT> (2.59.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.59.0 (latest)](/java/docs/reference/google-cloud-core/latest/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.58.2](/java/docs/reference/google-cloud-core/2.58.2/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.57.0](/java/docs/reference/google-cloud-core/2.57.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.56.0](/java/docs/reference/google-cloud-core/2.56.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.55.0](/java/docs/reference/google-cloud-core/2.55.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.53.1](/java/docs/reference/google-cloud-core/2.53.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.52.0](/java/docs/reference/google-cloud-core/2.52.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.51.0](/java/docs/reference/google-cloud-core/2.51.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.50.0](/java/docs/reference/google-cloud-core/2.50.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.49.1](/java/docs/reference/google-cloud-core/2.49.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.48.0](/java/docs/reference/google-cloud-core/2.48.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.47.0](/java/docs/reference/google-cloud-core/2.47.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.45.0](/java/docs/reference/google-cloud-core/2.45.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.44.1](/java/docs/reference/google-cloud-core/2.44.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.43.0](/java/docs/reference/google-cloud-core/2.43.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.42.0](/java/docs/reference/google-cloud-core/2.42.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.41.0](/java/docs/reference/google-cloud-core/2.41.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.40.0](/java/docs/reference/google-cloud-core/2.40.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.39.0](/java/docs/reference/google-cloud-core/2.39.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.38.1](/java/docs/reference/google-cloud-core/2.38.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.37.0](/java/docs/reference/google-cloud-core/2.37.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.36.1](/java/docs/reference/google-cloud-core/2.36.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.35.0](/java/docs/reference/google-cloud-core/2.35.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.33.0](/java/docs/reference/google-cloud-core/2.33.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.32.0](/java/docs/reference/google-cloud-core/2.32.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.31.0](/java/docs/reference/google-cloud-core/2.31.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.29.0](/java/docs/reference/google-cloud-core/2.29.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.28.0](/java/docs/reference/google-cloud-core/2.28.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.27.0](/java/docs/reference/google-cloud-core/2.27.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.26.0](/java/docs/reference/google-cloud-core/2.26.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.25.0](/java/docs/reference/google-cloud-core/2.25.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.24.1](/java/docs/reference/google-cloud-core/2.24.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.23.0](/java/docs/reference/google-cloud-core/2.23.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.22.1](/java/docs/reference/google-cloud-core/2.22.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.21.1](/java/docs/reference/google-cloud-core/2.21.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.20.1](/java/docs/reference/google-cloud-core/2.20.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.13.0](/java/docs/reference/google-cloud-core/2.13.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.12.0](/java/docs/reference/google-cloud-core/2.12.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.11.0](/java/docs/reference/google-cloud-core/2.11.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.9.4](/java/docs/reference/google-cloud-core/2.9.4/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.8.27](/java/docs/reference/google-cloud-core/2.8.27/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.7.1](/java/docs/reference/google-cloud-core/2.7.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.6.1](/java/docs/reference/google-cloud-core/2.6.1/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.5.11](/java/docs/reference/google-cloud-core/2.5.11/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.4.0](/java/docs/reference/google-cloud-core/2.4.0/com.google.cloud.BaseWriteChannel.BaseState)\n- [2.3.5](/java/docs/reference/google-cloud-core/2.3.5/com.google.cloud.BaseWriteChannel.BaseState) \n\n protected abstract static class BaseWriteChannel.BaseState\u003cServiceOptionsT,EntityT\u003e implements RestorableState\u003cWriteChannel\u003e, Serializable\n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e BaseWriteChannel.BaseState\\\u003cServiceOptionsT,EntityT\\\u003e \n\nImplements\n----------\n\ncom.google.cloud.RestorableState\\\u003ccom.google.cloud.WriteChannel\\\u003e, [Serializable](https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html) \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### BaseState(BaseWriteChannel.BaseState.Builder\\\u003cServiceOptionsT,EntityT\\\u003e builder)\n\n protected BaseState(BaseWriteChannel.BaseState.Builder\u003cServiceOptionsT,EntityT\u003e builder)\n\n| **Internal Only**: This feature is not stable for application use.\n|\n| *This class should only be extended within google-cloud-java*\n\nFields\n------\n\n### buffer\n\n protected final byte[] buffer\n\n### chunkSize\n\n protected final int chunkSize\n\n### entity\n\n protected final EntityT entity\n\n### isOpen\n\n protected final boolean isOpen\n\n### position\n\n protected final long position\n\n### serviceOptions\n\n protected final ServiceOptionsT serviceOptions\n\n### uploadId\n\n protected final String uploadId\n\nMethods\n-------\n\n### equals(Object obj)\n\n public boolean equals(Object obj)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### toString()\n\n public String toString()\n\n**Overrides** \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--)\n\n### toStringHelper()\n\n protected List\u003cBaseWriteChannel.BaseState.ValueHolder\u003e toStringHelper()"]]