Package su.litvak.chromecast.api.v2
Class CastChannel.AuthResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CastChannel.AuthResponse,CastChannel.AuthResponse.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CastChannel.AuthResponse,CastChannel.AuthResponse.Builder>
su.litvak.chromecast.api.v2.CastChannel.AuthResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,CastChannel.AuthResponseOrBuilder
- Enclosing class:
CastChannel.AuthResponse
public static final class CastChannel.AuthResponse.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CastChannel.AuthResponse,CastChannel.AuthResponse.Builder>
implements CastChannel.AuthResponseOrBuilder
Protobuf type
su.litvak.chromecast.api.v2.AuthResponse-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllIntermediateCertificate(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes intermediate_certificate = 3;addIntermediateCertificate(com.google.protobuf.ByteString value) repeated bytes intermediate_certificate = 3;required bytes client_auth_certificate = 2;repeated bytes intermediate_certificate = 3;required bytes signature = 1;optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];com.google.protobuf.ByteStringrequired bytes client_auth_certificate = 2;com.google.protobuf.ByteStringgetIntermediateCertificate(int index) repeated bytes intermediate_certificate = 3;intrepeated bytes intermediate_certificate = 3;List<com.google.protobuf.ByteString> repeated bytes intermediate_certificate = 3;com.google.protobuf.ByteStringrequired bytes signature = 1;optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];booleanrequired bytes client_auth_certificate = 2;booleanrequired bytes signature = 1;booleanoptional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];setClientAuthCertificate(com.google.protobuf.ByteString value) required bytes client_auth_certificate = 2;setIntermediateCertificate(int index, com.google.protobuf.ByteString value) repeated bytes intermediate_certificate = 3;setSignature(com.google.protobuf.ByteString value) required bytes signature = 1;optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasSignature
public boolean hasSignature()required bytes signature = 1;- Specified by:
hasSignaturein interfaceCastChannel.AuthResponseOrBuilder- Returns:
- Whether the signature field is set.
-
getSignature
public com.google.protobuf.ByteString getSignature()required bytes signature = 1;- Specified by:
getSignaturein interfaceCastChannel.AuthResponseOrBuilder- Returns:
- The signature.
-
setSignature
required bytes signature = 1;- Parameters:
value- The signature to set.- Returns:
- This builder for chaining.
-
clearSignature
required bytes signature = 1;- Returns:
- This builder for chaining.
-
hasClientAuthCertificate
public boolean hasClientAuthCertificate()required bytes client_auth_certificate = 2;- Specified by:
hasClientAuthCertificatein interfaceCastChannel.AuthResponseOrBuilder- Returns:
- Whether the clientAuthCertificate field is set.
-
getClientAuthCertificate
public com.google.protobuf.ByteString getClientAuthCertificate()required bytes client_auth_certificate = 2;- Specified by:
getClientAuthCertificatein interfaceCastChannel.AuthResponseOrBuilder- Returns:
- The clientAuthCertificate.
-
setClientAuthCertificate
public CastChannel.AuthResponse.Builder setClientAuthCertificate(com.google.protobuf.ByteString value) required bytes client_auth_certificate = 2;- Parameters:
value- The clientAuthCertificate to set.- Returns:
- This builder for chaining.
-
clearClientAuthCertificate
required bytes client_auth_certificate = 2;- Returns:
- This builder for chaining.
-
getIntermediateCertificateList
repeated bytes intermediate_certificate = 3;- Specified by:
getIntermediateCertificateListin interfaceCastChannel.AuthResponseOrBuilder- Returns:
- A list containing the intermediateCertificate.
-
getIntermediateCertificateCount
public int getIntermediateCertificateCount()repeated bytes intermediate_certificate = 3;- Specified by:
getIntermediateCertificateCountin interfaceCastChannel.AuthResponseOrBuilder- Returns:
- The count of intermediateCertificate.
-
getIntermediateCertificate
public com.google.protobuf.ByteString getIntermediateCertificate(int index) repeated bytes intermediate_certificate = 3;- Specified by:
getIntermediateCertificatein interfaceCastChannel.AuthResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The intermediateCertificate at the given index.
-
setIntermediateCertificate
public CastChannel.AuthResponse.Builder setIntermediateCertificate(int index, com.google.protobuf.ByteString value) repeated bytes intermediate_certificate = 3;- Parameters:
value- The intermediateCertificate to set.- Returns:
- This builder for chaining.
-
addIntermediateCertificate
public CastChannel.AuthResponse.Builder addIntermediateCertificate(com.google.protobuf.ByteString value) repeated bytes intermediate_certificate = 3;- Parameters:
value- The intermediateCertificate to add.- Returns:
- This builder for chaining.
-
addAllIntermediateCertificate
public CastChannel.AuthResponse.Builder addAllIntermediateCertificate(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes intermediate_certificate = 3;- Parameters:
values- The intermediateCertificate to add.- Returns:
- This builder for chaining.
-
clearIntermediateCertificate
repeated bytes intermediate_certificate = 3;- Returns:
- This builder for chaining.
-
hasSignatureAlgorithm
public boolean hasSignatureAlgorithm()optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];- Specified by:
hasSignatureAlgorithmin interfaceCastChannel.AuthResponseOrBuilder- Returns:
- Whether the signatureAlgorithm field is set.
-
getSignatureAlgorithm
optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];- Specified by:
getSignatureAlgorithmin interfaceCastChannel.AuthResponseOrBuilder- Returns:
- The signatureAlgorithm.
-
setSignatureAlgorithm
optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];- Parameters:
value- The enum numeric value on the wire for signatureAlgorithm to set.- Returns:
- This builder for chaining.
-
clearSignatureAlgorithm
optional .su.litvak.chromecast.api.v2.SignatureAlgorithm signature_algorithm = 4 [default = RSASSA_PKCS1v15];- Returns:
- This builder for chaining.
-