Skip to content

Commit 4770333

Browse files
authored
Fix google api-linter errors (#57)
1 parent 496da20 commit 4770333

File tree

23 files changed

+56
-57
lines changed

23 files changed

+56
-57
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ gogo-grpc: clean $(PROTO_OUT)
3232
$(foreach PROTO_DIR,$(PROTO_DIRS),protoc --proto_path=$(PROTO_IMPORT) --gogoslick_out=Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc,paths=source_relative:$(PROTO_OUT) $(PROTO_DIR)*.proto;)
3333

3434
fix-path:
35-
mv -f $(PROTO_OUT)/temporal/* $(PROTO_OUT) && rm -d $(PROTO_OUT)/temporal
35+
mv -f $(PROTO_OUT)/temporal/* $(PROTO_OUT) && rm -rf $(PROTO_OUT)/temporal
3636

3737
# Plugins & tools
3838

temporal/common/v1/message.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.common.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/common/v1;common";
28-
option java_package = "io.temporal.proto.common.v1";
28+
option java_package = "io.temporal.common.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "MessageProto";
3131

temporal/decision/v1/message.proto

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.decision.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/decision/v1;decision";
28-
option java_package = "io.temporal.proto.decision.v1";
28+
option java_package = "io.temporal.decision.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "MessageProto";
3131

@@ -43,22 +43,21 @@ message ScheduleActivityTaskDecisionAttributes {
4343
temporal.common.v1.Header header = 5;
4444
temporal.common.v1.Payloads input = 6;
4545
// Indicates how long the caller is willing to wait for an activity completion.
46-
// Limits for how long retries are happening. Either this or startToCloseTimeoutSeconds is required.
46+
// Limits for how long retries are happening. Either this or start_to_close_timeout_seconds must be specified.
4747
// When not specified defaults to the workflow execution timeout.
4848
int32 schedule_to_close_timeout_seconds = 7;
4949
// Limits time an activity task can stay in a task queue before a worker picks it up.
5050
// This timeout is always non retryable as all a retry would achieve is to put it back into the same queue.
51-
// Defaults to scheduleToCloseTimeoutSeconds or workflow execution timeout if not specified.
51+
// Defaults to schedule_to_close_timeout_seconds or workflow execution timeout if not specified.
5252
int32 schedule_to_start_timeout_seconds = 8;
5353
// Maximum time an activity is allowed to execute after a pick up by a worker.
54-
// This timeout is always retryable. Either this or scheduleToCloseTimeoutSeconds is required.
54+
// This timeout is always retryable. Either this or schedule_to_close_timeout_seconds must be specified.
5555
int32 start_to_close_timeout_seconds = 9;
5656
// Maximum time between successful worker heartbeats.
57-
// Optional. By default no heartbeat is required.
5857
int32 heartbeat_timeout_seconds = 10;
59-
// Activity retry policy. Note that activity is retried by default according to a default retry policy.
60-
// To disable retries provide a retry policy with maximumAttempts equals to 1.
61-
// The retries happen up to scheduleToCloseTimeout.
58+
// Activities are provided by a default retry policy controlled through the service dynamic configuration.
59+
// Retries are happening up to schedule_to_close_timeout.
60+
// To disable retries set retry_policy.maximum_attempts to 1.
6261
temporal.common.v1.RetryPolicy retry_policy = 11;
6362
}
6463

temporal/enums/v1/common.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "CommonProto";
3131

temporal/enums/v1/decision_type.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "DecisionTypeProto";
3131

temporal/enums/v1/event_type.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "EventTypeProto";
3131

temporal/enums/v1/failed_cause.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "FailedCauseProto";
3131

temporal/enums/v1/namespace.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "NamespaceProto";
3131

temporal/enums/v1/query.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "QueryProto";
3131

temporal/enums/v1/task_list.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ syntax = "proto3";
2525
package temporal.enums.v1;
2626

2727
option go_package = "go.temporal.io/temporal-proto/enums/v1;enums";
28-
option java_package = "io.temporal.proto.enums.v1";
28+
option java_package = "io.temporal.enums.v1";
2929
option java_multiple_files = true;
3030
option java_outer_classname = "TaskListProto";
3131

0 commit comments

Comments
 (0)