Sha256: 058426b2f7a4ccf6dc4d1fe23f7de3735da324d6b32f12c702b3c1aa3a895ea3

Contents?: true

Size: 1.88 KB

Versions: 32

Compression:

Stored size: 1.88 KB

Contents

package test;

enum StatusType {
  PENDING = 0;
  ENABLED = 1;
  DISABLED = 2;
  DELETED = 3;
}

message ResourceFindRequest {
  required string name = 1;
  optional bool active = 2;
  repeated string widgets = 3;
  repeated bytes widget_bytes = 4;
}

message ResourceSleepRequest {
  optional int32 sleep = 1;
}

message Resource {
  extensions 100 to max;

  required string name = 1;
  optional int64 date_created = 2;
  optional StatusType status = 3;
  repeated StatusType repeated_enum = 4;
}

message ResourceWithRequiredField {
  required string foo_is_required = 1;
}

message Searchable {
  enum SearchType {
    FLAT = 1;
    NESTED = 2;
  }

  extend test.Resource {
    optional bool ext_is_searchable = 100;
    optional bool ext_is_hidden = 101;
    optional Searchable.SearchType ext_search_type = 102 [default=FLAT];
  }
}

message MessageParent {
  message MessageChild {
    optional string child1 = 1;
  }
}

message Nested {
  extensions 100 to 110;

  optional string name = 1;
  optional Resource resource = 2;
  repeated Resource multiple_resources = 3;
  optional StatusType status = 4;

  message NestedLevelOne {
    extensions 100 to 101;
    optional bool level_one = 1 [default=true];

    extend Resource {
      optional bool ext_nested_in_level_one = 105;
      optional bool ext_dup_field = 106;
    }
  }

  extend NestedLevelOne {
    optional bool ext_nested_level_one = 100;
  }

//  extend Resource {
//    optional bool ext_dup_field = 107;
//  }
}

extend Nested {
  optional string foo = 100;
  optional int64 bar = 101;
}

extend Nested.NestedLevelOne {
  optional bool ext_nested_level_one_outer = 101;
}

service ResourceService {
  rpc Find (ResourceFindRequest) returns (Resource);
  rpc FindWithRpcFailed (ResourceFindRequest) returns (Resource);
  rpc FindWithSleep (ResourceSleepRequest) returns (Resource);
  rpc FindNotImplemented (ResourceFindRequest) returns (Resource);
}

Version data entries

32 entries across 32 versions & 4 rubygems

Version Path
protobuf-core-3.5.0 spec/support/test/resource.proto
protobuffy-3.6.0 spec/support/test/resource.proto
protobuf-3.5.5 spec/support/test/resource.proto
protobuf-3.5.4 spec/support/test/resource.proto
protobuf-3.5.3 spec/support/test/resource.proto
protobuf-3.5.2 spec/support/test/resource.proto
protobuf-3.5.1 spec/support/test/resource.proto
protobuffy-3.5.1 spec/support/test/resource.proto
protobuffy-3.4.0 spec/support/test/resource.proto
prepor-protobuf-3.5.1 spec/support/test/resource.proto
prepor-protobuf-3.5.0 spec/support/test/resource.proto
protobuf-3.5.0 spec/support/test/resource.proto
protobuffy-3.3.0 spec/support/test/resource.proto
protobuf-3.4.4 spec/support/test/resource.proto
protobuf-3.4.3 spec/support/test/resource.proto
protobuf-3.4.2 spec/support/test/resource.proto
protobuf-3.4.1 spec/support/test/resource.proto
protobuf-3.4.0 spec/support/test/resource.proto
protobuffy-3.2.0 spec/support/test/resource.proto
protobuffy-3.1.0 spec/support/test/resource.proto