Package com.google.pubsub.v1
Class ListSnapshotsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
- com.google.pubsub.v1.ListSnapshotsRequest.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ListSnapshotsRequestOrBuilder
,Cloneable
- Enclosing class:
- ListSnapshotsRequest
public static final class ListSnapshotsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder> implements ListSnapshotsRequestOrBuilder
Request for the `ListSnapshots` method.
Protobuf typegoogle.pubsub.v1.ListSnapshotsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListSnapshotsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListSnapshotsRequest
build()
ListSnapshotsRequest
buildPartial()
ListSnapshotsRequest.Builder
clear()
ListSnapshotsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListSnapshotsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListSnapshotsRequest.Builder
clearPageSize()
Maximum number of snapshots to return.ListSnapshotsRequest.Builder
clearPageToken()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.ListSnapshotsRequest.Builder
clearProject()
Required.ListSnapshotsRequest.Builder
clone()
ListSnapshotsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getPageSize()
Maximum number of snapshots to return.String
getPageToken()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.com.google.protobuf.ByteString
getPageTokenBytes()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.String
getProject()
Required.com.google.protobuf.ByteString
getProjectBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListSnapshotsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListSnapshotsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ListSnapshotsRequest.Builder
mergeFrom(ListSnapshotsRequest other)
ListSnapshotsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListSnapshotsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListSnapshotsRequest.Builder
setPageSize(int value)
Maximum number of snapshots to return.ListSnapshotsRequest.Builder
setPageToken(String value)
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.ListSnapshotsRequest.Builder
setPageTokenBytes(com.google.protobuf.ByteString value)
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.ListSnapshotsRequest.Builder
setProject(String value)
Required.ListSnapshotsRequest.Builder
setProjectBytes(com.google.protobuf.ByteString value)
Required.ListSnapshotsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListSnapshotsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
clear
public ListSnapshotsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
getDefaultInstanceForType
public ListSnapshotsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListSnapshotsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListSnapshotsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListSnapshotsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
setField
public ListSnapshotsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
clearField
public ListSnapshotsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
clearOneof
public ListSnapshotsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
setRepeatedField
public ListSnapshotsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
addRepeatedField
public ListSnapshotsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
mergeFrom
public ListSnapshotsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListSnapshotsRequest.Builder>
-
mergeFrom
public ListSnapshotsRequest.Builder mergeFrom(ListSnapshotsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
mergeFrom
public ListSnapshotsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListSnapshotsRequest.Builder>
- Throws:
IOException
-
getProject
public String getProject()
Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getProject
in interfaceListSnapshotsRequestOrBuilder
- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()
Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getProjectBytes
in interfaceListSnapshotsRequestOrBuilder
- Returns:
- The bytes for project.
-
setProject
public ListSnapshotsRequest.Builder setProject(String value)
Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The project to set.- Returns:
- This builder for chaining.
-
clearProject
public ListSnapshotsRequest.Builder clearProject()
Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setProjectBytes
public ListSnapshotsRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
Required. The name of the project in which to list snapshots. Format is `projects/{project-id}`.
string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for project to set.- Returns:
- This builder for chaining.
-
getPageSize
public int getPageSize()
Maximum number of snapshots to return.
int32 page_size = 2;
- Specified by:
getPageSize
in interfaceListSnapshotsRequestOrBuilder
- Returns:
- The pageSize.
-
setPageSize
public ListSnapshotsRequest.Builder setPageSize(int value)
Maximum number of snapshots to return.
int32 page_size = 2;
- Parameters:
value
- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
public ListSnapshotsRequest.Builder clearPageSize()
Maximum number of snapshots to return.
int32 page_size = 2;
- Returns:
- This builder for chaining.
-
getPageToken
public String getPageToken()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
string page_token = 3;
- Specified by:
getPageToken
in interfaceListSnapshotsRequestOrBuilder
- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
string page_token = 3;
- Specified by:
getPageTokenBytes
in interfaceListSnapshotsRequestOrBuilder
- Returns:
- The bytes for pageToken.
-
setPageToken
public ListSnapshotsRequest.Builder setPageToken(String value)
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
string page_token = 3;
- Parameters:
value
- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
public ListSnapshotsRequest.Builder clearPageToken()
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
string page_token = 3;
- Returns:
- This builder for chaining.
-
setPageTokenBytes
public ListSnapshotsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
string page_token = 3;
- Parameters:
value
- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListSnapshotsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
mergeUnknownFields
public final ListSnapshotsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder>
-
-