-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore(pubsub): Add commit_proto_schema to samples #29241
base: main
Are you sure you want to change the base?
Conversation
77cf0a9
to
c6d1abf
Compare
c6d1abf
to
4bb6ef0
Compare
def revision_id | ||
return nil if reference? | ||
@grpc.revision_id if @grpc.revision_id && !@grpc.revision_id.empty? | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: these are functional changes to the library. If we include these, we'll need to apply the feat:
conventional commit tag.
## | ||
# The revision ID of the schema. | ||
# | ||
# @return [String] The revision id. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to document that this can also return nil. One way to do that is to have a second @return
tag, e.g.
# @return [String] The revision id.
# @return [nil] If this object is a reference.
def commit_proto_schema schema_id:, proto_file: | ||
# [START pubsub_commit_proto_schema] | ||
# schema_id = "your-schema-id" | ||
# proto_file = "path/to/a/proto/file/(.proto)/formatted/in/protocol/buffers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a little odd because the value is not a well-formed example path. How about just "path/to/a/proto_file.proto"
?
No description provided.