Skip to content
Permalink
Branch: master
Commits on Jun 5, 2019
  1. internal/impl: unexport ExtensionField.Desc

    dsnet committed Jun 5, 2019
    CL/180577 removes direct access to the Desc field in v1.
    
    Since the only way to access the type is through {Has,Get,Set}Type,
    we can now unexport the field and change the underlying type.
    
    Change-Id: I6cc7018d4326c17228ba579d6161c5fb3f6d4127
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/180578
    Reviewed-by: Damien Neil <dneil@google.com>
  2. internal/impl: abstract away ExtensionDescV1 as the underlying descri…

    dsnet committed Jun 4, 2019
    …ptor
    
    Add ExtensionField.{SetType,GetType} to hide the fact that the underlying
    descriptor is actually an ExtensionDescV1.
    
    Change-Id: I1d0595484ced0a88d2df0852a732fdf0fe9aa232
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/180538
    Reviewed-by: Damien Neil <dneil@google.com>
You can’t perform that action at this time.