
com.google.api.ads.admanager.axis.v202502.SamSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
The newest version!
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* SamSession.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4.1-SNAPSHOT Mar 20, 2024 (11:59:10 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.admanager.axis.v202502;
public class SamSession implements java.io.Serializable {
private java.lang.String sessionId;
private java.lang.Boolean isVodSession;
private com.google.api.ads.admanager.axis.v202502.StreamCreateRequest streamCreateRequest;
private com.google.api.ads.admanager.axis.v202502.AdBreak[] adBreaks;
private com.google.api.ads.admanager.axis.v202502.DateTime startDateTime;
private java.lang.Long sessionDurationMillis;
private java.lang.Long contentDurationMillis;
public SamSession() {
}
public SamSession(
java.lang.String sessionId,
java.lang.Boolean isVodSession,
com.google.api.ads.admanager.axis.v202502.StreamCreateRequest streamCreateRequest,
com.google.api.ads.admanager.axis.v202502.AdBreak[] adBreaks,
com.google.api.ads.admanager.axis.v202502.DateTime startDateTime,
java.lang.Long sessionDurationMillis,
java.lang.Long contentDurationMillis) {
this.sessionId = sessionId;
this.isVodSession = isVodSession;
this.streamCreateRequest = streamCreateRequest;
this.adBreaks = adBreaks;
this.startDateTime = startDateTime;
this.sessionDurationMillis = sessionDurationMillis;
this.contentDurationMillis = contentDurationMillis;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("adBreaks", getAdBreaks())
.add("contentDurationMillis", getContentDurationMillis())
.add("isVodSession", getIsVodSession())
.add("sessionDurationMillis", getSessionDurationMillis())
.add("sessionId", getSessionId())
.add("startDateTime", getStartDateTime())
.add("streamCreateRequest", getStreamCreateRequest())
.toString();
}
/**
* Gets the sessionId value for this SamSession.
*
* @return sessionId
*/
public java.lang.String getSessionId() {
return sessionId;
}
/**
* Sets the sessionId value for this SamSession.
*
* @param sessionId
*/
public void setSessionId(java.lang.String sessionId) {
this.sessionId = sessionId;
}
/**
* Gets the isVodSession value for this SamSession.
*
* @return isVodSession
*/
public java.lang.Boolean getIsVodSession() {
return isVodSession;
}
/**
* Sets the isVodSession value for this SamSession.
*
* @param isVodSession
*/
public void setIsVodSession(java.lang.Boolean isVodSession) {
this.isVodSession = isVodSession;
}
/**
* Gets the streamCreateRequest value for this SamSession.
*
* @return streamCreateRequest
*/
public com.google.api.ads.admanager.axis.v202502.StreamCreateRequest getStreamCreateRequest() {
return streamCreateRequest;
}
/**
* Sets the streamCreateRequest value for this SamSession.
*
* @param streamCreateRequest
*/
public void setStreamCreateRequest(com.google.api.ads.admanager.axis.v202502.StreamCreateRequest streamCreateRequest) {
this.streamCreateRequest = streamCreateRequest;
}
/**
* Gets the adBreaks value for this SamSession.
*
* @return adBreaks
*/
public com.google.api.ads.admanager.axis.v202502.AdBreak[] getAdBreaks() {
return adBreaks;
}
/**
* Sets the adBreaks value for this SamSession.
*
* @param adBreaks
*/
public void setAdBreaks(com.google.api.ads.admanager.axis.v202502.AdBreak[] adBreaks) {
this.adBreaks = adBreaks;
}
public com.google.api.ads.admanager.axis.v202502.AdBreak getAdBreaks(int i) {
return this.adBreaks[i];
}
public void setAdBreaks(int i, com.google.api.ads.admanager.axis.v202502.AdBreak _value) {
this.adBreaks[i] = _value;
}
/**
* Gets the startDateTime value for this SamSession.
*
* @return startDateTime
*/
public com.google.api.ads.admanager.axis.v202502.DateTime getStartDateTime() {
return startDateTime;
}
/**
* Sets the startDateTime value for this SamSession.
*
* @param startDateTime
*/
public void setStartDateTime(com.google.api.ads.admanager.axis.v202502.DateTime startDateTime) {
this.startDateTime = startDateTime;
}
/**
* Gets the sessionDurationMillis value for this SamSession.
*
* @return sessionDurationMillis
*/
public java.lang.Long getSessionDurationMillis() {
return sessionDurationMillis;
}
/**
* Sets the sessionDurationMillis value for this SamSession.
*
* @param sessionDurationMillis
*/
public void setSessionDurationMillis(java.lang.Long sessionDurationMillis) {
this.sessionDurationMillis = sessionDurationMillis;
}
/**
* Gets the contentDurationMillis value for this SamSession.
*
* @return contentDurationMillis
*/
public java.lang.Long getContentDurationMillis() {
return contentDurationMillis;
}
/**
* Sets the contentDurationMillis value for this SamSession.
*
* @param contentDurationMillis
*/
public void setContentDurationMillis(java.lang.Long contentDurationMillis) {
this.contentDurationMillis = contentDurationMillis;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof SamSession)) return false;
SamSession other = (SamSession) obj;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.sessionId==null && other.getSessionId()==null) ||
(this.sessionId!=null &&
this.sessionId.equals(other.getSessionId()))) &&
((this.isVodSession==null && other.getIsVodSession()==null) ||
(this.isVodSession!=null &&
this.isVodSession.equals(other.getIsVodSession()))) &&
((this.streamCreateRequest==null && other.getStreamCreateRequest()==null) ||
(this.streamCreateRequest!=null &&
this.streamCreateRequest.equals(other.getStreamCreateRequest()))) &&
((this.adBreaks==null && other.getAdBreaks()==null) ||
(this.adBreaks!=null &&
java.util.Arrays.equals(this.adBreaks, other.getAdBreaks()))) &&
((this.startDateTime==null && other.getStartDateTime()==null) ||
(this.startDateTime!=null &&
this.startDateTime.equals(other.getStartDateTime()))) &&
((this.sessionDurationMillis==null && other.getSessionDurationMillis()==null) ||
(this.sessionDurationMillis!=null &&
this.sessionDurationMillis.equals(other.getSessionDurationMillis()))) &&
((this.contentDurationMillis==null && other.getContentDurationMillis()==null) ||
(this.contentDurationMillis!=null &&
this.contentDurationMillis.equals(other.getContentDurationMillis())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getSessionId() != null) {
_hashCode += getSessionId().hashCode();
}
if (getIsVodSession() != null) {
_hashCode += getIsVodSession().hashCode();
}
if (getStreamCreateRequest() != null) {
_hashCode += getStreamCreateRequest().hashCode();
}
if (getAdBreaks() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy