Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* Protobuf type {@code google.crypto.tink.JwtEcdsaPublicKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.JwtEcdsaPublicKey, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.JwtEcdsaPublicKey)
com.google.crypto.tink.proto.JwtEcdsaPublicKeyOrBuilder {
// Construct using com.google.crypto.tink.proto.JwtEcdsaPublicKey.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* uint32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return instance.getVersion();
}
/**
* uint32 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
copyOnWrite();
instance.setVersion(value);
return this;
}
/**
* uint32 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
copyOnWrite();
instance.clearVersion();
return this;
}
/**
* .google.crypto.tink.JwtEcdsaAlgorithm algorithm = 2;
* @return The enum numeric value on the wire for algorithm.
*/
@java.lang.Override
public int getAlgorithmValue() {
return instance.getAlgorithmValue();
}
/**
* .google.crypto.tink.JwtEcdsaAlgorithm algorithm = 2;
* @param value The algorithm to set.
* @return This builder for chaining.
*/
public Builder setAlgorithmValue(int value) {
copyOnWrite();
instance.setAlgorithmValue(value);
return this;
}
/**
* .google.crypto.tink.JwtEcdsaAlgorithm algorithm = 2;
* @return The algorithm.
*/
@java.lang.Override
public com.google.crypto.tink.proto.JwtEcdsaAlgorithm getAlgorithm() {
return instance.getAlgorithm();
}
/**
* .google.crypto.tink.JwtEcdsaAlgorithm algorithm = 2;
* @param value The enum numeric value on the wire for algorithm to set.
* @return This builder for chaining.
*/
public Builder setAlgorithm(com.google.crypto.tink.proto.JwtEcdsaAlgorithm value) {
copyOnWrite();
instance.setAlgorithm(value);
return this;
}
/**
* .google.crypto.tink.JwtEcdsaAlgorithm algorithm = 2;
* @return This builder for chaining.
*/
public Builder clearAlgorithm() {
copyOnWrite();
instance.clearAlgorithm();
return this;
}
/**
*
* Affine coordinates of the public key in big-endian representation. The
* public key is a point (x, y) on the curve defined by algorithm.
*
*
* bytes x = 3;
* @return The x.
*/
@java.lang.Override
public com.google.protobuf.ByteString getX() {
return instance.getX();
}
/**
*
* Affine coordinates of the public key in big-endian representation. The
* public key is a point (x, y) on the curve defined by algorithm.
*
*
* bytes x = 3;
* @param value The x to set.
* @return This builder for chaining.
*/
public Builder setX(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setX(value);
return this;
}
/**
*
* Affine coordinates of the public key in big-endian representation. The
* public key is a point (x, y) on the curve defined by algorithm.
*
*
* bytes x = 3;
* @return This builder for chaining.
*/
public Builder clearX() {
copyOnWrite();
instance.clearX();
return this;
}
/**
* bytes y = 4;
* @return The y.
*/
@java.lang.Override
public com.google.protobuf.ByteString getY() {
return instance.getY();
}
/**
* bytes y = 4;
* @param value The y to set.
* @return This builder for chaining.
*/
public Builder setY(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setY(value);
return this;
}
/**
* bytes y = 4;
* @return This builder for chaining.
*/
public Builder clearY() {
copyOnWrite();
instance.clearY();
return this;
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
@java.lang.Override
public boolean hasCustomKid() {
return instance.hasCustomKid();
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
@java.lang.Override
public com.google.crypto.tink.proto.JwtEcdsaPublicKey.CustomKid getCustomKid() {
return instance.getCustomKid();
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
public Builder setCustomKid(com.google.crypto.tink.proto.JwtEcdsaPublicKey.CustomKid value) {
copyOnWrite();
instance.setCustomKid(value);
return this;
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
public Builder setCustomKid(
com.google.crypto.tink.proto.JwtEcdsaPublicKey.CustomKid.Builder builderForValue) {
copyOnWrite();
instance.setCustomKid(builderForValue.build());
return this;
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
public Builder mergeCustomKid(com.google.crypto.tink.proto.JwtEcdsaPublicKey.CustomKid value) {
copyOnWrite();
instance.mergeCustomKid(value);
return this;
}
/**
* .google.crypto.tink.JwtEcdsaPublicKey.CustomKid custom_kid = 5;
*/
public Builder clearCustomKid() { copyOnWrite();
instance.clearCustomKid();
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.JwtEcdsaPublicKey)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.crypto.tink.proto.JwtEcdsaPublicKey();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"version_",
"algorithm_",
"x_",
"y_",
"customKid_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u000b\u0002\f" +
"\u0003\n\u0004\n\u0005\t";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.crypto.tink.proto.JwtEcdsaPublicKey.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.crypto.tink.JwtEcdsaPublicKey)
private static final com.google.crypto.tink.proto.JwtEcdsaPublicKey DEFAULT_INSTANCE;
static {
JwtEcdsaPublicKey defaultInstance = new JwtEcdsaPublicKey();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
JwtEcdsaPublicKey.class, defaultInstance);
}
public static com.google.crypto.tink.proto.JwtEcdsaPublicKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}