public static final class ListSnapshotsResponse.Builder extends GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder> implements ListSnapshotsResponseOrBuilder
Response for the ListSnapshots
method.
Protobuf type google.pubsub.v1.ListSnapshotsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSnapshots(Iterable<? extends Snapshot> values)
public ListSnapshotsResponse.Builder addAllSnapshots(Iterable<? extends Snapshot> values)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.pubsub.v1.Snapshot>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListSnapshotsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSnapshots(Snapshot value)
public ListSnapshotsResponse.Builder addSnapshots(Snapshot value)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
addSnapshots(Snapshot.Builder builderForValue)
public ListSnapshotsResponse.Builder addSnapshots(Snapshot.Builder builderForValue)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
addSnapshots(int index, Snapshot value)
public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot value)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
addSnapshots(int index, Snapshot.Builder builderForValue)
public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot.Builder builderForValue)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
addSnapshotsBuilder()
public Snapshot.Builder addSnapshotsBuilder()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
addSnapshotsBuilder(int index)
public Snapshot.Builder addSnapshotsBuilder(int index)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
build()
public ListSnapshotsResponse build()
buildPartial()
public ListSnapshotsResponse buildPartial()
clear()
public ListSnapshotsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListSnapshotsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListSnapshotsResponse.Builder clearNextPageToken()
Optional. If not empty, indicates that there may be more snapshot that
match the request; this value should be passed in a new
ListSnapshotsRequest
.
string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public ListSnapshotsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSnapshots()
public ListSnapshotsResponse.Builder clearSnapshots()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
clone()
public ListSnapshotsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListSnapshotsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
Optional. If not empty, indicates that there may be more snapshot that
match the request; this value should be passed in a new
ListSnapshotsRequest
.
string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
Optional. If not empty, indicates that there may be more snapshot that
match the request; this value should be passed in a new
ListSnapshotsRequest
.
string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
ByteString | The bytes for nextPageToken.
|
getSnapshots(int index)
public Snapshot getSnapshots(int index)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getSnapshotsBuilder(int index)
public Snapshot.Builder getSnapshotsBuilder(int index)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getSnapshotsBuilderList()
public List<Snapshot.Builder> getSnapshotsBuilderList()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
getSnapshotsCount()
public int getSnapshotsCount()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
int | |
getSnapshotsList()
public List<Snapshot> getSnapshotsList()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
getSnapshotsOrBuilder(int index)
public SnapshotOrBuilder getSnapshotsOrBuilder(int index)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
getSnapshotsOrBuilderList()
public List<? extends SnapshotOrBuilder> getSnapshotsOrBuilderList()
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
---|
Type | Description |
List<? extends com.google.pubsub.v1.SnapshotOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ListSnapshotsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListSnapshotsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(ListSnapshotsResponse other)
public ListSnapshotsResponse.Builder mergeFrom(ListSnapshotsResponse other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSnapshots(int index)
public ListSnapshotsResponse.Builder removeSnapshots(int index)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListSnapshotsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListSnapshotsResponse.Builder setNextPageToken(String value)
Optional. If not empty, indicates that there may be more snapshot that
match the request; this value should be passed in a new
ListSnapshotsRequest
.
string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
value | String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListSnapshotsResponse.Builder setNextPageTokenBytes(ByteString value)
Optional. If not empty, indicates that there may be more snapshot that
match the request; this value should be passed in a new
ListSnapshotsRequest
.
string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListSnapshotsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSnapshots(int index, Snapshot value)
public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot value)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
setSnapshots(int index, Snapshot.Builder builderForValue)
public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot.Builder builderForValue)
Optional. The resulting snapshots.
repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
setUnknownFields(UnknownFieldSet unknownFields)
public final ListSnapshotsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides