public final class CreateReservationRequest extends GeneratedMessageV3 implements CreateReservationRequestOrBuilder
Request for CreateReservation.
Protobuf type google.cloud.pubsublite.v1.CreateReservationRequest
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateReservationRequestImplements
CreateReservationRequestOrBuilderStatic Fields
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Type | Description |
int |
RESERVATION_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER
Type | Description |
int |
RESERVATION_ID_FIELD_NUMBER
public static final int RESERVATION_ID_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static CreateReservationRequest getDefaultInstance()
Type | Description |
CreateReservationRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static CreateReservationRequest.Builder newBuilder()
Type | Description |
CreateReservationRequest.Builder |
newBuilder(CreateReservationRequest prototype)
public static CreateReservationRequest.Builder newBuilder(CreateReservationRequest prototype)
Name | Description |
prototype | CreateReservationRequest |
Type | Description |
CreateReservationRequest.Builder |
parseDelimitedFrom(InputStream input)
public static CreateReservationRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static CreateReservationRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static CreateReservationRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static CreateReservationRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static CreateReservationRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static CreateReservationRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateReservationRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateReservationRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<CreateReservationRequest> parser()
Type | Description |
Parser<CreateReservationRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public CreateReservationRequest getDefaultInstanceForType()
Type | Description |
CreateReservationRequest |
getParent()
public String getParent()
Required. The parent location in which to create the reservation.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The parent location in which to create the reservation.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getParserForType()
public Parser<CreateReservationRequest> getParserForType()
Type | Description |
Parser<CreateReservationRequest> |
getReservation()
public Reservation getReservation()
Required. Configuration of the reservation to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Reservation | The reservation. |
getReservationId()
public String getReservationId()
Required. The ID to use for the reservation, which will become the final
component of the reservation's name.
This value is structured like: my-reservation-name
.
string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The reservationId. |
getReservationIdBytes()
public ByteString getReservationIdBytes()
Required. The ID to use for the reservation, which will become the final
component of the reservation's name.
This value is structured like: my-reservation-name
.
string reservation_id = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for reservationId. |
getReservationOrBuilder()
public ReservationOrBuilder getReservationOrBuilder()
Required. Configuration of the reservation to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ReservationOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasReservation()
public boolean hasReservation()
Required. Configuration of the reservation to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Reservation reservation = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the reservation field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public CreateReservationRequest.Builder newBuilderForType()
Type | Description |
CreateReservationRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateReservationRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
CreateReservationRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public CreateReservationRequest.Builder toBuilder()
Type | Description |
CreateReservationRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |