// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file gcs-api.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
import { RequestPartnerAppHeader, RequestProjectHeader } from "./shared_pb.js";

/**
 * @generated from message api.GetPartnerReadTokenRequest
 */
export class GetPartnerReadTokenRequest extends Message<GetPartnerReadTokenRequest> {
  /**
   * @generated from field: api.RequestPartnerAppHeader Header = 1;
   */
  Header?: RequestPartnerAppHeader;

  constructor(data?: PartialMessage<GetPartnerReadTokenRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetPartnerReadTokenRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestPartnerAppHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPartnerReadTokenRequest {
    return new GetPartnerReadTokenRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPartnerReadTokenRequest {
    return new GetPartnerReadTokenRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPartnerReadTokenRequest {
    return new GetPartnerReadTokenRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetPartnerReadTokenRequest | PlainMessage<GetPartnerReadTokenRequest> | undefined, b: GetPartnerReadTokenRequest | PlainMessage<GetPartnerReadTokenRequest> | undefined): boolean {
    return proto3.util.equals(GetPartnerReadTokenRequest, a, b);
  }
}

/**
 * @generated from message api.GetPartnerWriteTokenRequest
 */
export class GetPartnerWriteTokenRequest extends Message<GetPartnerWriteTokenRequest> {
  /**
   * @generated from field: api.RequestPartnerAppHeader Header = 1;
   */
  Header?: RequestPartnerAppHeader;

  constructor(data?: PartialMessage<GetPartnerWriteTokenRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetPartnerWriteTokenRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestPartnerAppHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPartnerWriteTokenRequest {
    return new GetPartnerWriteTokenRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPartnerWriteTokenRequest {
    return new GetPartnerWriteTokenRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPartnerWriteTokenRequest {
    return new GetPartnerWriteTokenRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetPartnerWriteTokenRequest | PlainMessage<GetPartnerWriteTokenRequest> | undefined, b: GetPartnerWriteTokenRequest | PlainMessage<GetPartnerWriteTokenRequest> | undefined): boolean {
    return proto3.util.equals(GetPartnerWriteTokenRequest, a, b);
  }
}

/**
 * @generated from message api.GetProjectReadTokenRequest
 */
export class GetProjectReadTokenRequest extends Message<GetProjectReadTokenRequest> {
  /**
   * @generated from field: api.RequestProjectHeader Header = 1;
   */
  Header?: RequestProjectHeader;

  constructor(data?: PartialMessage<GetProjectReadTokenRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetProjectReadTokenRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProjectReadTokenRequest {
    return new GetProjectReadTokenRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProjectReadTokenRequest {
    return new GetProjectReadTokenRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProjectReadTokenRequest {
    return new GetProjectReadTokenRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetProjectReadTokenRequest | PlainMessage<GetProjectReadTokenRequest> | undefined, b: GetProjectReadTokenRequest | PlainMessage<GetProjectReadTokenRequest> | undefined): boolean {
    return proto3.util.equals(GetProjectReadTokenRequest, a, b);
  }
}

/**
 * @generated from message api.GetProjectWriteTokenRequest
 */
export class GetProjectWriteTokenRequest extends Message<GetProjectWriteTokenRequest> {
  /**
   * @generated from field: api.RequestProjectHeader Header = 1;
   */
  Header?: RequestProjectHeader;

  constructor(data?: PartialMessage<GetProjectWriteTokenRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetProjectWriteTokenRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProjectWriteTokenRequest {
    return new GetProjectWriteTokenRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProjectWriteTokenRequest {
    return new GetProjectWriteTokenRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProjectWriteTokenRequest {
    return new GetProjectWriteTokenRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetProjectWriteTokenRequest | PlainMessage<GetProjectWriteTokenRequest> | undefined, b: GetProjectWriteTokenRequest | PlainMessage<GetProjectWriteTokenRequest> | undefined): boolean {
    return proto3.util.equals(GetProjectWriteTokenRequest, a, b);
  }
}

/**
 * @generated from message api.GetBucketSTSRequest
 */
export class GetBucketSTSRequest extends Message<GetBucketSTSRequest> {
  /**
   * @generated from field: string ProjectID = 1;
   */
  ProjectID = "";

  constructor(data?: PartialMessage<GetBucketSTSRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetBucketSTSRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBucketSTSRequest {
    return new GetBucketSTSRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBucketSTSRequest {
    return new GetBucketSTSRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBucketSTSRequest {
    return new GetBucketSTSRequest().fromJsonString(jsonString, options);
  }

  static equals(a: GetBucketSTSRequest | PlainMessage<GetBucketSTSRequest> | undefined, b: GetBucketSTSRequest | PlainMessage<GetBucketSTSRequest> | undefined): boolean {
    return proto3.util.equals(GetBucketSTSRequest, a, b);
  }
}

/**
 * @generated from message api.CreatePartnerBucketRequest
 */
export class CreatePartnerBucketRequest extends Message<CreatePartnerBucketRequest> {
  /**
   * @generated from field: string ProjectID = 1;
   */
  ProjectID = "";

  /**
   * @generated from field: string BucketName = 2;
   */
  BucketName = "";

  constructor(data?: PartialMessage<CreatePartnerBucketRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.CreatePartnerBucketRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreatePartnerBucketRequest {
    return new CreatePartnerBucketRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreatePartnerBucketRequest {
    return new CreatePartnerBucketRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreatePartnerBucketRequest {
    return new CreatePartnerBucketRequest().fromJsonString(jsonString, options);
  }

  static equals(a: CreatePartnerBucketRequest | PlainMessage<CreatePartnerBucketRequest> | undefined, b: CreatePartnerBucketRequest | PlainMessage<CreatePartnerBucketRequest> | undefined): boolean {
    return proto3.util.equals(CreatePartnerBucketRequest, a, b);
  }
}

/**
 * @generated from message api.CreateProjectBucketRequest
 */
export class CreateProjectBucketRequest extends Message<CreateProjectBucketRequest> {
  /**
   * @generated from field: string ProjectID = 1;
   */
  ProjectID = "";

  constructor(data?: PartialMessage<CreateProjectBucketRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.CreateProjectBucketRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProjectBucketRequest {
    return new CreateProjectBucketRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateProjectBucketRequest {
    return new CreateProjectBucketRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateProjectBucketRequest {
    return new CreateProjectBucketRequest().fromJsonString(jsonString, options);
  }

  static equals(a: CreateProjectBucketRequest | PlainMessage<CreateProjectBucketRequest> | undefined, b: CreateProjectBucketRequest | PlainMessage<CreateProjectBucketRequest> | undefined): boolean {
    return proto3.util.equals(CreateProjectBucketRequest, a, b);
  }
}

/**
 * @generated from message api.DeletePartnerBucketRequest
 */
export class DeletePartnerBucketRequest extends Message<DeletePartnerBucketRequest> {
  /**
   * @generated from field: string ProjectID = 1;
   */
  ProjectID = "";

  /**
   * @generated from field: string BucketName = 2;
   */
  BucketName = "";

  constructor(data?: PartialMessage<DeletePartnerBucketRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeletePartnerBucketRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeletePartnerBucketRequest {
    return new DeletePartnerBucketRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeletePartnerBucketRequest {
    return new DeletePartnerBucketRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeletePartnerBucketRequest {
    return new DeletePartnerBucketRequest().fromJsonString(jsonString, options);
  }

  static equals(a: DeletePartnerBucketRequest | PlainMessage<DeletePartnerBucketRequest> | undefined, b: DeletePartnerBucketRequest | PlainMessage<DeletePartnerBucketRequest> | undefined): boolean {
    return proto3.util.equals(DeletePartnerBucketRequest, a, b);
  }
}

/**
 * @generated from message api.DeleteProjectBucketRequest
 */
export class DeleteProjectBucketRequest extends Message<DeleteProjectBucketRequest> {
  /**
   * @generated from field: string ProjectID = 1;
   */
  ProjectID = "";

  constructor(data?: PartialMessage<DeleteProjectBucketRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeleteProjectBucketRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ProjectID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteProjectBucketRequest {
    return new DeleteProjectBucketRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteProjectBucketRequest {
    return new DeleteProjectBucketRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteProjectBucketRequest {
    return new DeleteProjectBucketRequest().fromJsonString(jsonString, options);
  }

  static equals(a: DeleteProjectBucketRequest | PlainMessage<DeleteProjectBucketRequest> | undefined, b: DeleteProjectBucketRequest | PlainMessage<DeleteProjectBucketRequest> | undefined): boolean {
    return proto3.util.equals(DeleteProjectBucketRequest, a, b);
  }
}

/**
 * @generated from message api.DeleteOrganisationBucketRequest
 */
export class DeleteOrganisationBucketRequest extends Message<DeleteOrganisationBucketRequest> {
  /**
   * @generated from field: string OrganisationID = 1;
   */
  OrganisationID = "";

  constructor(data?: PartialMessage<DeleteOrganisationBucketRequest>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeleteOrganisationBucketRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganisationBucketRequest {
    return new DeleteOrganisationBucketRequest().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganisationBucketRequest {
    return new DeleteOrganisationBucketRequest().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganisationBucketRequest {
    return new DeleteOrganisationBucketRequest().fromJsonString(jsonString, options);
  }

  static equals(a: DeleteOrganisationBucketRequest | PlainMessage<DeleteOrganisationBucketRequest> | undefined, b: DeleteOrganisationBucketRequest | PlainMessage<DeleteOrganisationBucketRequest> | undefined): boolean {
    return proto3.util.equals(DeleteOrganisationBucketRequest, a, b);
  }
}

/**
 * @generated from message api.GetPartnerReadTokenResult
 */
export class GetPartnerReadTokenResult extends Message<GetPartnerReadTokenResult> {
  /**
   * @generated from field: string AccessToken = 1;
   */
  AccessToken = "";

  /**
   * @generated from field: int64 ExpiresIn = 2;
   */
  ExpiresIn = protoInt64.zero;

  /**
   * @generated from field: string Resource = 3;
   */
  Resource = "";

  /**
   * @generated from field: string BucketName = 4;
   */
  BucketName = "";

  constructor(data?: PartialMessage<GetPartnerReadTokenResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetPartnerReadTokenResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "AccessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "ExpiresIn", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
    { no: 3, name: "Resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPartnerReadTokenResult {
    return new GetPartnerReadTokenResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPartnerReadTokenResult {
    return new GetPartnerReadTokenResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPartnerReadTokenResult {
    return new GetPartnerReadTokenResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetPartnerReadTokenResult | PlainMessage<GetPartnerReadTokenResult> | undefined, b: GetPartnerReadTokenResult | PlainMessage<GetPartnerReadTokenResult> | undefined): boolean {
    return proto3.util.equals(GetPartnerReadTokenResult, a, b);
  }
}

/**
 * @generated from message api.GetPartnerWriteTokenResult
 */
export class GetPartnerWriteTokenResult extends Message<GetPartnerWriteTokenResult> {
  /**
   * @generated from field: string AccessToken = 1;
   */
  AccessToken = "";

  /**
   * @generated from field: int64 ExpiresIn = 2;
   */
  ExpiresIn = protoInt64.zero;

  /**
   * @generated from field: string Resource = 3;
   */
  Resource = "";

  /**
   * @generated from field: string BucketName = 4;
   */
  BucketName = "";

  constructor(data?: PartialMessage<GetPartnerWriteTokenResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetPartnerWriteTokenResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "AccessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "ExpiresIn", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
    { no: 3, name: "Resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPartnerWriteTokenResult {
    return new GetPartnerWriteTokenResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPartnerWriteTokenResult {
    return new GetPartnerWriteTokenResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPartnerWriteTokenResult {
    return new GetPartnerWriteTokenResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetPartnerWriteTokenResult | PlainMessage<GetPartnerWriteTokenResult> | undefined, b: GetPartnerWriteTokenResult | PlainMessage<GetPartnerWriteTokenResult> | undefined): boolean {
    return proto3.util.equals(GetPartnerWriteTokenResult, a, b);
  }
}

/**
 * @generated from message api.GetProjectReadTokenResult
 */
export class GetProjectReadTokenResult extends Message<GetProjectReadTokenResult> {
  /**
   * @generated from field: string AccessToken = 1;
   */
  AccessToken = "";

  /**
   * @generated from field: int64 ExpiresIn = 2;
   */
  ExpiresIn = protoInt64.zero;

  /**
   * @generated from field: string Resource = 3;
   */
  Resource = "";

  /**
   * @generated from field: string BucketName = 4;
   */
  BucketName = "";

  constructor(data?: PartialMessage<GetProjectReadTokenResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetProjectReadTokenResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "AccessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "ExpiresIn", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
    { no: 3, name: "Resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProjectReadTokenResult {
    return new GetProjectReadTokenResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProjectReadTokenResult {
    return new GetProjectReadTokenResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProjectReadTokenResult {
    return new GetProjectReadTokenResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetProjectReadTokenResult | PlainMessage<GetProjectReadTokenResult> | undefined, b: GetProjectReadTokenResult | PlainMessage<GetProjectReadTokenResult> | undefined): boolean {
    return proto3.util.equals(GetProjectReadTokenResult, a, b);
  }
}

/**
 * @generated from message api.GetProjectWriteTokenResult
 */
export class GetProjectWriteTokenResult extends Message<GetProjectWriteTokenResult> {
  /**
   * @generated from field: string AccessToken = 1;
   */
  AccessToken = "";

  /**
   * @generated from field: int64 ExpiresIn = 2;
   */
  ExpiresIn = protoInt64.zero;

  /**
   * @generated from field: string Resource = 3;
   */
  Resource = "";

  /**
   * @generated from field: string BucketName = 4;
   */
  BucketName = "";

  constructor(data?: PartialMessage<GetProjectWriteTokenResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetProjectWriteTokenResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "AccessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "ExpiresIn", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
    { no: 3, name: "Resource", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProjectWriteTokenResult {
    return new GetProjectWriteTokenResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProjectWriteTokenResult {
    return new GetProjectWriteTokenResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProjectWriteTokenResult {
    return new GetProjectWriteTokenResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetProjectWriteTokenResult | PlainMessage<GetProjectWriteTokenResult> | undefined, b: GetProjectWriteTokenResult | PlainMessage<GetProjectWriteTokenResult> | undefined): boolean {
    return proto3.util.equals(GetProjectWriteTokenResult, a, b);
  }
}

/**
 * @generated from message api.GetBucketSTSResult
 */
export class GetBucketSTSResult extends Message<GetBucketSTSResult> {
  /**
   * @generated from field: string AccessToken = 1;
   */
  AccessToken = "";

  /**
   * @generated from field: int64 ExpiresIn = 2;
   */
  ExpiresIn = protoInt64.zero;

  /**
   * @generated from field: repeated string Resources = 3;
   */
  Resources: string[] = [];

  /**
   * @generated from field: string BucketName = 4;
   */
  BucketName = "";

  constructor(data?: PartialMessage<GetBucketSTSResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.GetBucketSTSResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "AccessToken", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "ExpiresIn", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
    { no: 3, name: "Resources", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
    { no: 4, name: "BucketName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBucketSTSResult {
    return new GetBucketSTSResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBucketSTSResult {
    return new GetBucketSTSResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBucketSTSResult {
    return new GetBucketSTSResult().fromJsonString(jsonString, options);
  }

  static equals(a: GetBucketSTSResult | PlainMessage<GetBucketSTSResult> | undefined, b: GetBucketSTSResult | PlainMessage<GetBucketSTSResult> | undefined): boolean {
    return proto3.util.equals(GetBucketSTSResult, a, b);
  }
}

/**
 * @generated from message api.CreateBucketResult
 */
export class CreateBucketResult extends Message<CreateBucketResult> {
  /**
   * @generated from field: string BucketPath = 1;
   */
  BucketPath = "";

  constructor(data?: PartialMessage<CreateBucketResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.CreateBucketResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "BucketPath", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateBucketResult {
    return new CreateBucketResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateBucketResult {
    return new CreateBucketResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateBucketResult {
    return new CreateBucketResult().fromJsonString(jsonString, options);
  }

  static equals(a: CreateBucketResult | PlainMessage<CreateBucketResult> | undefined, b: CreateBucketResult | PlainMessage<CreateBucketResult> | undefined): boolean {
    return proto3.util.equals(CreateBucketResult, a, b);
  }
}

/**
 * @generated from message api.DeleteBucketResult
 */
export class DeleteBucketResult extends Message<DeleteBucketResult> {
  constructor(data?: PartialMessage<DeleteBucketResult>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.DeleteBucketResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteBucketResult {
    return new DeleteBucketResult().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteBucketResult {
    return new DeleteBucketResult().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteBucketResult {
    return new DeleteBucketResult().fromJsonString(jsonString, options);
  }

  static equals(a: DeleteBucketResult | PlainMessage<DeleteBucketResult> | undefined, b: DeleteBucketResult | PlainMessage<DeleteBucketResult> | undefined): boolean {
    return proto3.util.equals(DeleteBucketResult, a, b);
  }
}

